forked from OSchip/llvm-project
Turn on -momit-leaf-frame-pointer by default on all non-Darwin platforms.
Fixes PR9121! llvm-svn: 124718
This commit is contained in:
parent
a46c898314
commit
75033770f4
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue