diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-02-22 00:30:39 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-02-22 00:30:39 +0000 |
commit | 877c0a27f8136de23bbc4a9bba8a412e80bb2e28 (patch) | |
tree | f5c29a6454b60762e5d3f6728c67adf371d0757d /clang/lib/Driver | |
parent | d9d5b4492b93ff0d79b37fe82d47e7df5daaa4bc (diff) | |
download | bcm5719-llvm-877c0a27f8136de23bbc4a9bba8a412e80bb2e28.tar.gz bcm5719-llvm-877c0a27f8136de23bbc4a9bba8a412e80bb2e28.zip |
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
Diffstat (limited to 'clang/lib/Driver')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index da1a40d1e6b..f9e5d82c02a 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -363,6 +363,9 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) { // diagnostic information to a bug report. void Driver::generateCompilationDiagnostics(Compilation &C, const Command *FailingCommand) { + if (C.getArgs().hasArg(options::OPT_fno_crash_diagnostics)) + return; + Diag(clang::diag::note_drv_command_failed_diag_msg) << "Please submit a bug report to " BUG_REPORT_URL " and include command" " line arguments and all diagnostic information."; |