]> granicus.if.org Git - clang/commit
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)
commit9909f323ce49b0a630c8c7d6805f41c2c84d1fb6
tree9979a232acea88cd04262438d9e77f8cc99c18db
parent8cb68a4efd45a9f33cd43f716ec9dbfa93fcc76c
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258950 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