mirror of
https://github.com/intel/llvm.git
synced 2026-02-03 02:26:27 +08:00
Update for llvm front end change and use the TargetOptions struct
for ABI. llvm-svn: 224493
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user