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
Showing
- include/clang/Basic/DiagnosticFrontendKinds.td 4 additions, 2 deletionsinclude/clang/Basic/DiagnosticFrontendKinds.td
- lib/CodeGen/CodeGenAction.cpp 64 additions, 11 deletionslib/CodeGen/CodeGenAction.cpp
- test/CodeGen/backend-unsupported-error.ll 45 additions, 0 deletionstest/CodeGen/backend-unsupported-error.ll
- test/Frontend/optimization-remark-analysis.c 2 additions, 2 deletionstest/Frontend/optimization-remark-analysis.c
- test/Misc/backend-optimization-failure-nodbg.cpp 2 additions, 2 deletionstest/Misc/backend-optimization-failure-nodbg.cpp
Loading
Please register or sign in to comment