Don't warn about

clang -w -c foo.s
Helps with the gdb testsuite.

llvm-svn: 119574
This commit is contained in:
Rafael Espindola 2010-11-17 22:13:25 +00:00
parent 4ded8f264a
commit cfaaddaee0
1 changed files with 3 additions and 0 deletions

View File

@ -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.