Add backend dignostic printer for unsupported features
authorOliver Stannard <oliver.stannard@arm.com>
Wed, 27 Jan 2016 17:30:28 +0000 (17:30 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Wed, 27 Jan 2016 17:30:28 +0000 (17:30 +0000)
commit5e03a4b8370d1103489b3d711a00f2d504628570
tree6adb6469bb81dd049247b5e2ac658b302e62dbc5
parent81e05525e3213a5421a8c458a59b19128f5487a4
Add backend dignostic printer for unsupported features

The related LLVM patch adds a backend diagnostic type for reporting
unsupported features, this adds a printer for them to clang.

In the case where debug location information is not available, I've
changed the printer to report the location as the first line of the
function, rather than the closing brace, as the latter does not give the
user any information. This also affects optimisation remarks.

Differential Revision: http://reviews.llvm.org/D16591

llvm-svn: 258950
clang/include/clang/Basic/DiagnosticFrontendKinds.td
clang/lib/CodeGen/CodeGenAction.cpp
clang/test/CodeGen/backend-unsupported-error.ll [new file with mode: 0644]
clang/test/Frontend/optimization-remark-analysis.c
clang/test/Misc/backend-optimization-failure-nodbg.cpp