summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-06-20 22:16:00 +0000
committerJustin Bogner <mail@justinbogner.com>2014-06-20 22:16:00 +0000
commit332a5e526e6d22bc9e628adb91cc7b2ece188001 (patch)
tree39c4e2587fed4ff041b4065bddfed700ff69c0d5 /clang/lib/Driver/Driver.cpp
parent0dc1e80a324b061c0143ce049032a1afd4dd1c7d (diff)
downloadbcm5719-llvm-332a5e526e6d22bc9e628adb91cc7b2ece188001.tar.gz
bcm5719-llvm-332a5e526e6d22bc9e628adb91cc7b2ece188001.zip
Driver: Record that we're in crashdump and push flags to ConstructJob
It's more flexible and arguably better layering to set flags to modify compiling for diagnostics in the CC1 job themselves, rather than tweaking the driver flags and letting them propagate. There is one visible change this causes: crash report files will now get preprocessed names (.i and friends). llvm-svn: 211411
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 34c48d4e388..3740c5a0fc8 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -419,8 +419,6 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
// Suppress driver output and emit preprocessor output to temp file.
Mode = CPPMode;
CCGenDiagnostics = true;
- C.getArgs().AddFlagArg(nullptr,
- Opts->getOption(options::OPT_frewrite_includes));
// Save the original job command(s).
std::string Cmd;
OpenPOWER on IntegriCloud