Merge pull request #63518 from aschwaighofer/frame-pointer-non-leaf

IRGen: Change to using frame-pointer=non-leaf for functions that request no framepointer
This commit is contained in:
Arnold Schwaighofer
2023-02-09 09:21:39 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -1310,7 +1310,7 @@ bool swift::irgen::shouldRemoveTargetFeature(StringRef feature) {
}
void IRGenModule::setHasNoFramePointer(llvm::AttrBuilder &Attrs) {
Attrs.addAttribute("frame-pointer", "none");
Attrs.addAttribute("frame-pointer", "non-leaf");
}
void IRGenModule::setHasNoFramePointer(llvm::Function *F) {