changeset 99:21681fa9647e

enable omit leaf function frame pointer
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Sun, 27 Dec 2015 21:59:05 +0900
parents 88e6d15e811d
children 57be027de0f4
files tools/clang/.git/index tools/clang/lib/CodeGen/CGCall.cpp
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file tools/clang/.git/index has changed
--- a/tools/clang/lib/CodeGen/CGCall.cpp	Mon Nov 02 03:57:17 2015 +0900
+++ b/tools/clang/lib/CodeGen/CGCall.cpp	Sun Dec 27 21:59:05 2015 +0900
@@ -1486,7 +1486,11 @@
     // Attributes that should go on the function, but not the call site.
     if (!CodeGenOpts.DisableFPElim) {
       FuncAttrs.addAttribute("no-frame-pointer-elim", "false");
+#ifndef noCbC
+    } else if (CodeGenOpts.OmitLeafFramePointer || LangOpts.HasCodeSegment) {
+#else
     } else if (CodeGenOpts.OmitLeafFramePointer) {
+#endif
       FuncAttrs.addAttribute("no-frame-pointer-elim", "false");
       FuncAttrs.addAttribute("no-frame-pointer-elim-non-leaf");
     } else {