# HG changeset patch # User Kaito Tokumori # Date 1451221145 -32400 # Node ID 21681fa9647e54cf4a551a8325d3101f423c279a # Parent 88e6d15e811d7a3916c74d78e45d341afe46b619 enable omit leaf function frame pointer diff -r 88e6d15e811d -r 21681fa9647e tools/clang/.git/index Binary file tools/clang/.git/index has changed diff -r 88e6d15e811d -r 21681fa9647e tools/clang/lib/CodeGen/CGCall.cpp --- 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 {