forked from OSchip/llvm-project
Add support for the -fno-omit-frame-pointer option. Patch by Roman Divacky!
llvm-svn: 78188
This commit is contained in:
parent
9b8364da0e
commit
72e211a47a
|
@ -420,6 +420,7 @@ OPTION("-fno-inline-functions", fno_inline_functions, Flag, clang_ignored_f_Grou
|
|||
OPTION("-fno-inline", fno_inline, Flag, clang_ignored_f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-keep-inline-functions", fno_keep_inline_functions, Flag, clang_ignored_f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-math-errno", fno_math_errno, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-omit-frame-pointer", fno_omit_frame_pointer, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-pascal-strings", fno_pascal_strings, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-rtti", fno_rtti, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-show-column", fno_show_column, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
|
|
|
@ -309,7 +309,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
if (Args.hasArg(options::OPT_ftime_report))
|
||||
CmdArgs.push_back("--time-passes");
|
||||
// FIXME: Set --enable-unsafe-fp-math.
|
||||
if (!Args.hasArg(options::OPT_fomit_frame_pointer))
|
||||
if (Args.hasArg(options::OPT_fno_omit_frame_pointer) ||
|
||||
!Args.hasArg(options::OPT_fomit_frame_pointer))
|
||||
CmdArgs.push_back("--disable-fp-elim");
|
||||
if (!Args.hasFlag(options::OPT_fzero_initialized_in_bss,
|
||||
options::OPT_fno_zero_initialized_in_bss,
|
||||
|
|
Loading…
Reference in New Issue