[cfe-commits] r124718 - /cfe/trunk/lib/Driver/Tools.cpp
Nick Lewycky
nicholas at mxc.ca
Tue Feb 1 22:43:03 PST 2011
Author: nicholas
Date: Wed Feb 2 00:43:03 2011
New Revision: 124718
URL: http://llvm.org/viewvc/llvm-project?rev=124718&view=rev
Log:
Turn on -momit-leaf-frame-pointer by default on all non-Darwin platforms.
Fixes PR9121!
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=124718&r1=124717&r2=124718&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Feb 2 00:43:03 2011
@@ -1089,9 +1089,10 @@
CmdArgs.push_back(A->getValue(Args));
}
- // -mno-omit-leaf-frame-pointer is default.
+ // -mno-omit-leaf-frame-pointer is the default on Darwin.
if (Args.hasFlag(options::OPT_momit_leaf_frame_pointer,
- options::OPT_mno_omit_leaf_frame_pointer, false))
+ options::OPT_mno_omit_leaf_frame_pointer,
+ getToolChain().getTriple().getOS() != llvm::Triple::Darwin))
CmdArgs.push_back("-momit-leaf-frame-pointer");
// -fno-math-errno is default.
More information about the cfe-commits
mailing list