diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-29 22:24:54 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-29 22:24:54 +0000 |
commit | a2094e76fc545b9e17c851c3d2c46b719c5f17eb (patch) | |
tree | 35e5d1a62595623b3f4de5987878cca0d57a720a /lib/Driver/Driver.cpp | |
parent | c77b766d221f6030ae509545d6b7c897707ca655 (diff) |
Driver: Make sure to claim -### before emitting "unused argument"
warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index bb89207466..a5d63e6068 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -712,6 +712,9 @@ void Driver::BuildJobs(Compilation &C) const { if (Diags.getNumErrors()) return; + // Claim -### here. + (void) C.getArgs().hasArg(options::OPT__HASH_HASH_HASH); + for (ArgList::const_iterator it = C.getArgs().begin(), ie = C.getArgs().end(); it != ie; ++it) { Arg *A = *it; |