]> granicus.if.org Git - clang/commit
Add backend dignostic printer for unsupported features
authorOliver Stannard <oliver.stannard@arm.com>
Tue, 2 Feb 2016 13:52:52 +0000 (13:52 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Tue, 2 Feb 2016 13:52:52 +0000 (13:52 +0000)
commitc3152179b593bf9d527b64c0150a609316de5ebc
tree63f636e379c3f897e5b758c3441ee5929452d66d
parente733f6bc150aeb327e871c9108cff1b5e46d3e8a
Add backend dignostic printer for unsupported features

Re-commit of r258950 after fixing layering violation.

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259499 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticFrontendKinds.td
lib/CodeGen/CodeGenAction.cpp
test/CodeGen/backend-unsupported-error.ll [new file with mode: 0644]
test/Frontend/optimization-remark-analysis.c
test/Misc/backend-optimization-failure-nodbg.cpp