summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-11-09 22:36:44 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-11-09 22:36:44 +0000
commite70ed8690f432dddf7a8a272d575681b1622c285 (patch)
treecdb406893bbd49e7807b387f9b1669fb0ad29270 /clang/lib/Driver/Driver.cpp
parent644c62f28f2fe58bc435e8a731cc46fabfb1703a (diff)
downloadbcm5719-llvm-e70ed8690f432dddf7a8a272d575681b1622c285.tar.gz
bcm5719-llvm-e70ed8690f432dddf7a8a272d575681b1622c285.zip
PR14303: Add a NoDriverOption flag to those options which are not accepted by
the driver (the options defined in CC1Options.td) and exclude their help from "clang --help". llvm-svn: 167638
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 7d63bf4ae65..464df333f7c 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -564,7 +564,9 @@ void Driver::PrintOptions(const ArgList &Args) const {
void Driver::PrintHelp(bool ShowHidden) const {
getOpts().PrintHelp(llvm::outs(), Name.c_str(), DriverTitle.c_str(),
- ShowHidden);
+ /*Include*/0,
+ /*Exclude*/options::NoDriverOption |
+ (ShowHidden ? 0 : options::HelpHidden));
}
void Driver::PrintVersion(const Compilation &C, raw_ostream &OS) const {
OpenPOWER on IntegriCloud