diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-11-17 08:20:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-11-17 08:20:42 +0000 |
| commit | 79ffdc7581f6d6296f37857e483a524f22b6c9e7 (patch) | |
| tree | 066d92489087cd52e6950c7bf9db46179fed14c1 /clang/lib/CodeGen/Mangle.h | |
| parent | 068f2ab10fe8e37afc4591eb1b06de1f91a39c1e (diff) | |
| download | bcm5719-llvm-79ffdc7581f6d6296f37857e483a524f22b6c9e7.tar.gz bcm5719-llvm-79ffdc7581f6d6296f37857e483a524f22b6c9e7.zip | |
With the newly simplified SourceMgr interfaces and the generalized
SrcMgrDiagHandler, we can improve clang diagnostics for inline asm:
instead of reporting them on a source line of the original line,
we can report it on the correct line wherever the string literal came
from. For something like this:
void foo() {
asm("push %rax\n"
".code32\n");
}
we used to get this: (note that the line in t.c isn't helpful)
t.c:4:7: error: warning: ignoring directive for now
asm("push %rax\n"
^
<inline asm>:2:1: note: instantiated into assembly here
.code32
^
now we get:
t.c:5:8: error: warning: ignoring directive for now
".code32\n"
^
<inline asm>:2:1: note: instantiated into assembly here
.code32
^
Note that we're pointing to line 5 properly now.
llvm-svn: 119488
Diffstat (limited to 'clang/lib/CodeGen/Mangle.h')
0 files changed, 0 insertions, 0 deletions

