Commit Graph

3 Commits

Author SHA1 Message Date
Matt Beaumont-Gay 1c883c58dd Remove trailing whitespace (especially after a \ which should be trailing)
llvm-svn: 152695
2012-03-14 01:23:41 +00:00
Chad Rosier 8028640704 Update test case to use not tool.
llvm-svn: 152664
2012-03-13 20:31:40 +00:00
Chad Rosier d6f716ab2a [driver] Parse diagnostic args in the driver.
Previously, only diagnostics thrown by the cc1 process were
actually honoring the diagnostic options given on the command line,
like -Werror.

Reuse the existing code in Frontend currently used for cc1,
adjusting it to not interpret -Wl, linker flags as warnings.

Also fix a faulty test exposed by this change.
It wasn't actually testing anything, and was giving this warning:

clang-3: warning: argument unused during compilation: '-verify'

Which -Werror didn't turn into an error because it was output
by the driver, not the cc1 process, and diagnostic options
weren't parsed by the driver. And you couldn't see the warning
when running the test suite.

Fixes PR12181.
Patch by Dylan Noblesmith <nobled@dreamwidth.org>.

llvm-svn: 152660
2012-03-13 20:09:56 +00:00