r198306 - Pass the aapcs and apcs features down to llvm.
Rafael Espindola
rafael.espindola at gmail.com
Thu Jan 2 05:57:18 PST 2014
Author: rafael
Date: Thu Jan 2 07:57:18 2014
New Revision: 198306
URL: http://llvm.org/viewvc/llvm-project?rev=198306&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=198306&r1=198305&r2=198306&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Thu Jan 2 07:57:18 2014
@@ -3814,6 +3814,11 @@ public:
}
void getDefaultFeatures(llvm::StringMap<bool> &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;
More information about the cfe-commits
mailing list