forked from OSchip/llvm-project
Forward the -fno-elide-constructor argument to clang -cc1. Fixes PR8652.
llvm-svn: 119915
This commit is contained in:
parent
d78dbee431
commit
d470fef01d
|
@ -1931,6 +1931,7 @@
|
|||
isa = PBXProject;
|
||||
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "clang" */;
|
||||
compatibilityVersion = "Xcode 2.4";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 1;
|
||||
knownRegions = (
|
||||
English,
|
||||
|
|
|
@ -270,6 +270,7 @@ def fdiagnostics_parseable_fixits : Flag<"-fdiagnostics-parseable-fixits">, Grou
|
|||
def fdiagnostics_show_option : Flag<"-fdiagnostics-show-option">, Group<f_Group>;
|
||||
def fdiagnostics_show_category_EQ : Joined<"-fdiagnostics-show-category=">, Group<f_Group>;
|
||||
def fdollars_in_identifiers : Flag<"-fdollars-in-identifiers">, Group<f_Group>;
|
||||
def felide_constructors : Flag<"-felide-constructors">, Group<f_Group>;
|
||||
def feliminate_unused_debug_symbols : Flag<"-feliminate-unused-debug-symbols">, Group<f_Group>;
|
||||
def femit_all_decls : Flag<"-femit-all-decls">, Group<f_Group>;
|
||||
def fencoding_EQ : Joined<"-fencoding=">, Group<f_Group>;
|
||||
|
@ -325,6 +326,7 @@ def fno_constant_cfstrings : Flag<"-fno-constant-cfstrings">, Group<f_Group>;
|
|||
def fno_diagnostics_fixit_info : Flag<"-fno-diagnostics-fixit-info">, Group<f_Group>;
|
||||
def fno_diagnostics_show_option : Flag<"-fno-diagnostics-show-option">, Group<f_Group>;
|
||||
def fno_dollars_in_identifiers : Flag<"-fno-dollars-in-identifiers">, Group<f_Group>;
|
||||
def fno_elide_constructors : Flag<"-fno-elide-constructors">, Group<f_Group>;
|
||||
def fno_eliminate_unused_debug_symbols : Flag<"-fno-eliminate-unused-debug-symbols">, Group<f_Group>;
|
||||
def fno_exceptions : Flag<"-fno-exceptions">, Group<f_Group>;
|
||||
def fno_finite_math_only : Flag<"-fno-finite-math-only">, Group<clang_ignored_f_Group>;
|
||||
|
|
|
@ -1347,6 +1347,12 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
false))
|
||||
CmdArgs.push_back("-fno-access-control");
|
||||
|
||||
// -felide-constructors is the default.
|
||||
if (Args.hasFlag(options::OPT_fno_elide_constructors,
|
||||
options::OPT_felide_constructors,
|
||||
false))
|
||||
CmdArgs.push_back("-fno-elide-constructors");
|
||||
|
||||
// -fexceptions=0 is default.
|
||||
if (!KernelOrKext &&
|
||||
needsExceptions(Args, InputType, getToolChain().getTriple()))
|
||||
|
|
Loading…
Reference in New Issue