Граф коммитов

2 Коммитов

Автор SHA1 Сообщение Дата
Chad Rosier cf3a6c448c Update test case to use not tool.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152664 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-13 20:31:40 +00:00
Chad Rosier 2dec85b218 [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>.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152660 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-13 20:09:56 +00:00