Update for llvm front end change and use the TargetOptions struct

for ABI.

llvm-svn: 224493
This commit is contained in:
Eric Christopher
2014-12-18 02:23:27 +00:00
parent 661f2d1ca1
commit 526ca20011
2 changed files with 1 additions and 5 deletions

View File

@@ -3945,11 +3945,6 @@ public:
}
void getDefaultFeatures(llvm::StringMap<bool> &Features) const override {
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;

View File

@@ -502,6 +502,7 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) {
Options.StackAlignmentOverride = CodeGenOpts.StackAlignment;
Options.DisableTailCalls = CodeGenOpts.DisableTailCalls;
Options.TrapFuncName = CodeGenOpts.TrapFuncName;
Options.ABIName = TargetOpts.ABI;
Options.PositionIndependentExecutable = LangOpts.PIELevel != 0;
Options.FunctionSections = CodeGenOpts.FunctionSections;
Options.DataSections = CodeGenOpts.DataSections;