forked from OSchip/llvm-project
Provide a way to disable auto-generation of preprocessed files during clang
crash. This can speedup the process of generating a delta reduced test case. rdar://10905465 llvm-svn: 151109
This commit is contained in:
parent
d9d5b4492b
commit
877c0a27f8
|
@ -292,6 +292,7 @@ def fconstant_string_class_EQ : Joined<"-fconstant-string-class=">, Group<f_Grou
|
||||||
def fconstexpr_depth_EQ : Joined<"-fconstexpr-depth=">, Group<f_Group>;
|
def fconstexpr_depth_EQ : Joined<"-fconstexpr-depth=">, Group<f_Group>;
|
||||||
def fconstexpr_backtrace_limit_EQ : Joined<"-fconstexpr-backtrace-limit=">,
|
def fconstexpr_backtrace_limit_EQ : Joined<"-fconstexpr-backtrace-limit=">,
|
||||||
Group<f_Group>;
|
Group<f_Group>;
|
||||||
|
def fno_crash_diagnostics : Flag<"-fno-crash-diagnostics">, Group<f_clang_Group>, Flags<[NoArgumentUnused]>;
|
||||||
def fcreate_profile : Flag<"-fcreate-profile">, Group<f_Group>;
|
def fcreate_profile : Flag<"-fcreate-profile">, Group<f_Group>;
|
||||||
def fcxx_exceptions: Flag<"-fcxx-exceptions">, Group<f_Group>;
|
def fcxx_exceptions: Flag<"-fcxx-exceptions">, Group<f_Group>;
|
||||||
def fcxx_modules : Flag <"-fcxx-modules">, Group<f_Group>, Flags<[NoForward]>;
|
def fcxx_modules : Flag <"-fcxx-modules">, Group<f_Group>, Flags<[NoForward]>;
|
||||||
|
|
|
@ -363,6 +363,9 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
|
||||||
// diagnostic information to a bug report.
|
// diagnostic information to a bug report.
|
||||||
void Driver::generateCompilationDiagnostics(Compilation &C,
|
void Driver::generateCompilationDiagnostics(Compilation &C,
|
||||||
const Command *FailingCommand) {
|
const Command *FailingCommand) {
|
||||||
|
if (C.getArgs().hasArg(options::OPT_fno_crash_diagnostics))
|
||||||
|
return;
|
||||||
|
|
||||||
Diag(clang::diag::note_drv_command_failed_diag_msg)
|
Diag(clang::diag::note_drv_command_failed_diag_msg)
|
||||||
<< "Please submit a bug report to " BUG_REPORT_URL " and include command"
|
<< "Please submit a bug report to " BUG_REPORT_URL " and include command"
|
||||||
" line arguments and all diagnostic information.";
|
" line arguments and all diagnostic information.";
|
||||||
|
|
Loading…
Reference in New Issue