Handle diagnostic warnings in Frontend diagnostic handler.
authorTyler Nowicki <tnowicki@apple.com>
Wed, 16 Jul 2014 00:40:42 +0000 (00:40 +0000)
committerTyler Nowicki <tnowicki@apple.com>
Wed, 16 Jul 2014 00:40:42 +0000 (00:40 +0000)
commite470771b3a183827b96327b2b7ad188272c4bb6e
tree9d653fd970174d068b55eb87872b59dce92b8494
parent0d830b42269476f3c3e2df2896fef0dbf86a73f2
Handle diagnostic warnings in Frontend diagnostic handler.

Clang uses a diagnostic handler to grab diagnostic messages so it can print them
with the line of source code they refer to. This patch extends this to handle
diagnostic warnings that were added to llvm to produce a warning when
loop vectorization is explicitly specified (using a pragma clang loop directive)
but fails.

Reviewed by: Aaron Ballman

llvm-svn: 213112
clang/include/clang/Basic/DiagnosticFrontendKinds.td
clang/include/clang/Basic/DiagnosticGroups.td
clang/lib/CodeGen/CodeGenAction.cpp