diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-17 22:13:25 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-17 22:13:25 +0000 |
commit | dbe80d9933e1fb0c26bd339e1f1f2f2d76dcac0a (patch) | |
tree | 11932529035fdbf2b53c38b6bfd80159a05ca269 | |
parent | cf5442648d4fdd9f1a3b524e449bbdb172ed14fa (diff) |
Don't warn about
clang -w -c foo.s
Helps with the gdb testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119574 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Driver/Tools.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 3754d2c4cc..b92089db6a 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1694,6 +1694,9 @@ void ClangAs::ConstructJob(Compilation &C, const JobAction &JA, assert(Inputs.size() == 1 && "Unexpected number of inputs."); const InputInfo &Input = Inputs[0]; + // Don't warn about "clang -w -c foo.s" + Args.ClaimAllArgs(options::OPT_w); + // Invoke ourselves in -cc1as mode. // // FIXME: Implement custom jobs for internal actions. |