summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-01-12 22:40:13 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-01-12 22:40:13 +0000
commit5b4081198ae94ffbbaee0863f2c00a800d9aacd8 (patch)
treee2e7c9c5f1c9e90f43c7546dc47ced2799a8610b /clang/lib/Driver/Tools.cpp
parent44a643c60cfedfd6063dd14db3441d9cf469325e (diff)
downloadbcm5719-llvm-5b4081198ae94ffbbaee0863f2c00a800d9aacd8.tar.gz
bcm5719-llvm-5b4081198ae94ffbbaee0863f2c00a800d9aacd8.zip
Address review comments on r290392:
- Don't break using '-mllvm -disable-llvm-optzns' (yet). - Don't add support for '-mllvm -disable-llvm-passes'. This is important for LLVM 4 as we haven't yet really told folks this is coming. I'll add release notes about this. I've also added some explicit testing of this so its more obvious what is happening here. llvm-svn: 291850
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index e267cdb2649..b4a83347def 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -6431,11 +6431,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
A->claim();
// We translate this by hand to the -cc1 argument, since nightly test uses
- // it and developers have been trained to spell it with -mllvm.
- if (StringRef(A->getValue(0)) == "-disable-llvm-passes") {
- CmdArgs.push_back("-disable-llvm-passes");
- } else
+ // it and developers have been trained to spell it with -mllvm. Both
+ // spellings are now deprecated and should be removed.
+ if (StringRef(A->getValue(0)) == "-disable-llvm-optzns") {
+ CmdArgs.push_back("-disable-llvm-optzns");
+ } else {
A->render(Args, CmdArgs);
+ }
}
// With -save-temps, we want to save the unoptimized bitcode output from the
OpenPOWER on IntegriCloud