summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-01-12 02:33:09 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-01-12 02:33:09 +0000
commit3661a82ef683aeda82f441627fed2895804bcc0c (patch)
tree290c332ce780e404b75a59ddcb6fc033c7a1a305 /clang/lib/Driver/Driver.cpp
parent89296ee2c39b772aa8528c1c2111974ed367b770 (diff)
downloadbcm5719-llvm-3661a82ef683aeda82f441627fed2895804bcc0c.tar.gz
bcm5719-llvm-3661a82ef683aeda82f441627fed2895804bcc0c.zip
Driver: include rewrite maps in the diagnostics
The rewrite map files are not copied, and so cannot be tracked as temporary files. Add them explicitly to the list of files that we request from the user to be attached to bug reports. llvm-svn: 225614
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 68ff98bd6f3..1664d0d49d4 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -548,6 +548,11 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
Cmd.Print(ScriptOS, "\n", /*Quote=*/true, &CrashInfo);
Diag(clang::diag::note_drv_command_failed_diag_msg) << Script;
}
+
+ for (const auto &A : C.getArgs().filtered(options::OPT_frewrite_map_file,
+ options::OPT_frewrite_map_file_EQ))
+ Diag(clang::diag::note_drv_command_failed_diag_msg) << A->getValue();
+
Diag(clang::diag::note_drv_command_failed_diag_msg)
<< "\n\n********************";
}
OpenPOWER on IntegriCloud