diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-07-02 03:53:34 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-07-02 03:53:34 +0000 |
commit | d519de082766bb71e13f6a516b305ff841c6b48c (patch) | |
tree | da38e5d9b198a063cd1db9fbd3b7064eeab71e6c /lib/CodeGen/RegAllocFast.cpp | |
parent | 4b02915386046fa882a95553a7457ae7d05e9f27 (diff) |
Include a source location when complaining about bad inline assembly.
Add a MI->emitError() method that the backend can use to report errors
related to inline assembly. Call it from X86FloatingPoint.cpp when the
constraints are wrong.
This enables proper clang diagnostics from the backend:
$ clang -c pr30848.c
pr30848.c:5:12: error: Inline asm output regs must be last on the x87 stack
__asm__ ("" : "=u" (d)); /* { dg-error "output regs" } */
^
1 error generated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134307 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocFast.cpp')
0 files changed, 0 insertions, 0 deletions