summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-07-31 20:51:53 +0000
committerHans Wennborg <hans@hanshq.net>2013-07-31 20:51:53 +0000
commit1907610d4e1cd85634d8e7e31001fdf899cc3ad5 (patch)
tree9fc0dbe7f746deab16d4cdbac0b4595a13b3a55a /clang/lib/Driver/Driver.cpp
parentca69a53bae802896a7c3705c52d81f4819ee62ab (diff)
downloadbcm5719-llvm-1907610d4e1cd85634d8e7e31001fdf899cc3ad5.tar.gz
bcm5719-llvm-1907610d4e1cd85634d8e7e31001fdf899cc3ad5.zip
clang-cl: add the /c, /W0 and /W1 options
This adds a few more clang-cl options. It also exposes two core clang options to the clang-cl mode: we need to be able to claim --driver_mode so it doesn't show up as unused in cl mode, and we need -### for tests. Differential Revision: http://llvm-reviews.chandlerc.com/D1232 llvm-svn: 187527
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 34594e643d6..4f9cd3e38a0 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -1883,9 +1883,9 @@ std::pair<unsigned, unsigned> Driver::getIncludeExcludeOptionFlagMasks() const {
unsigned ExcludedFlagsBitmask = 0;
if (Mode == CLMode) {
- // Only allow CL options.
- // FIXME: Also allow "core" Clang options.
- IncludedFlagsBitmask = options::CLOption;
+ // Include CL and Core options.
+ IncludedFlagsBitmask |= options::CLOption;
+ IncludedFlagsBitmask |= options::CoreOption;
} else {
ExcludedFlagsBitmask |= options::CLOption;
}
OpenPOWER on IntegriCloud