summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-03-13 20:09:56 +0000
committerChad Rosier <mcrosier@apple.com>2012-03-13 20:09:56 +0000
commitd6f716ab2a1cb2f5ff5d86d304a5672498772ff4 (patch)
tree53a1487cbe6d5da2bb7f109741db5ccd2c004f76 /llvm/lib/Support
parent82508c120165e52c31426be90c348414696d594e (diff)
downloadbcm5719-llvm-d6f716ab2a1cb2f5ff5d86d304a5672498772ff4.tar.gz
bcm5719-llvm-d6f716ab2a1cb2f5ff5d86d304a5672498772ff4.zip
[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
Diffstat (limited to 'llvm/lib/Support')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud