]> granicus.if.org Git - clang/commit
Use LLVM's new error handler API to report back end errors using Diagnostic.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 10 Aug 2009 03:40:28 +0000 (03:40 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 10 Aug 2009 03:40:28 +0000 (03:40 +0000)
commit70121ebd65be51d67025914bd3f035515b0caf4f
tree41bcf3187c6f40e328e0106a77f0de90a2d7535f
parent1df5109f475bcbc528eb1fb9fdb179dcadbb33a6
Use LLVM's new error handler API to report back end errors using Diagnostic.

For example,
--
ddunbar@giles:Frontend$ clang -c backend-errors.c
fatal error: error in backend: Global variable 'a' has an invalid section specifier
      'I AM, not, legal': mach-o section specifier uses an unknown section type.
--
compare to:
--
ddunbar@giles:Frontend$ gcc -c backend-errors.c
/var/folders/DQ/DQ8GT3++HESEzT1obWBynE+++TI/-Tmp-//cc45w2pq.s:2:Expected comma after segment-name
/var/folders/DQ/DQ8GT3++HESEzT1obWBynE+++TI/-Tmp-//cc45w2pq.s:2:Rest of line ignored. 1st junk character valued 77 (M).
--

Yay!

I am not tied to my wording choice, we could also go with "uncoverable error"
for the prefix, or just leave it off entirely.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78554 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticFrontendKinds.td
tools/clang-cc/clang-cc.cpp