mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: stop using the DisableFPElim target option
Use function attributes instead. This is required for a newer LLVM since it does not have the target option at all. rdar://21480622 Swift SVN r29676
This commit is contained in:
@@ -487,6 +487,13 @@ llvm::AttributeSet IRGenModule::constructInitialAttributes() {
|
||||
attrsUpdated = attrsUpdated.addAttribute(LLVMContext,
|
||||
llvm::AttributeSet::FunctionIndex,
|
||||
"no-frame-pointer-elim", "false");
|
||||
} else {
|
||||
attrsUpdated = attrsUpdated.addAttribute(
|
||||
LLVMContext, llvm::AttributeSet::FunctionIndex,
|
||||
"no-frame-pointer-elim", "true");
|
||||
attrsUpdated = attrsUpdated.addAttribute(
|
||||
LLVMContext, llvm::AttributeSet::FunctionIndex,
|
||||
"no-frame-pointer-elim-non-leaf");
|
||||
}
|
||||
|
||||
// Add target-cpu and target-features if they are non-null.
|
||||
|
||||
Reference in New Issue
Block a user