From: Rafael Espindola Date: Thu, 2 Jan 2014 13:57:18 +0000 (+0000) Subject: Pass the aapcs and apcs features down to llvm. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=073024ca090a1cc21536596bc35e1fc3ad55043a;p=clang Pass the aapcs and apcs features down to llvm. No functionality change, but unblocks asserting that llvm's and clang's datalayout strings are the same. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198306 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index d6980909d5..a7f261f35b 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -3814,6 +3814,11 @@ public: } void getDefaultFeatures(llvm::StringMap &Features) const { + if (IsAAPCS) + Features["aapcs"] = true; + else + Features["apcs"] = true; + StringRef ArchName = getTriple().getArchName(); if (CPU == "arm1136jf-s" || CPU == "arm1176jzf-s" || CPU == "mpcore") Features["vfp2"] = true;