]> granicus.if.org Git - clang/commit
Recommit: Handle diagnostic warnings in Frontend diagnostic handler.
authorTyler Nowicki <tnowicki@apple.com>
Fri, 18 Jul 2014 19:40:19 +0000 (19:40 +0000)
committerTyler Nowicki <tnowicki@apple.com>
Fri, 18 Jul 2014 19:40:19 +0000 (19:40 +0000)
commitf123d90865ba7ce63af433cfe932d4a5dda0cb26
treec24f43ea2c53c1e91d70313625c7c3a02af99098
parenta627c56110bfbd704ef62eb1d055241990018038
Recommit: 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
optimization failures that were added to llvm to produce a warning when
loop vectorization is explicitly specified (using a pragma clang loop directive)
but fails.

Update renames warning flag name to avoid indicating the flag's severity and
adds a test.

Reviewed by Alp Toker

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213400 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticFrontendKinds.td
include/clang/Basic/DiagnosticGroups.td
lib/CodeGen/CodeGenAction.cpp
test/Misc/backend-optimization-failure.cpp [new file with mode: 0644]