Turn on -momit-leaf-frame-pointer by default on all non-Darwin platforms.

Fixes PR9121!

llvm-svn: 124718
This commit is contained in:
Nick Lewycky 2011-02-02 06:43:03 +00:00
parent a46c898314
commit 75033770f4
1 changed files with 3 additions and 2 deletions

View File

@ -1089,9 +1089,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
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.