1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/lib/CodeGen/AsmPrinter
Chris Lattner 5faff99d84 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
2010-11-17 08:20:42 +00:00
..
AsmPrinter.cpp refactor the interface to EmitInlineAsm a bit, no functionality change. 2010-11-17 07:53:40 +00:00
AsmPrinterDwarf.cpp Add 118023 back, but with proper spelling for .uleb128/.sleb128. 2010-11-04 18:17:08 +00:00
AsmPrinterInlineAsm.cpp With the newly simplified SourceMgr interfaces and the generalized 2010-11-17 08:20:42 +00:00
CMakeLists.txt Removed a bunch of unnecessary target_link_libraries. 2010-09-28 22:39:14 +00:00
DIE.cpp Use DW_FORM_addr for DW_AT_entry_pc. 2010-06-28 22:22:47 +00:00
DIE.h First cut at supporting .debug_loc section. 2010-05-25 23:40:22 +00:00
DwarfDebug.cpp Remove DW_AT_start_scope support. It is incomplete and superseeded by location entries support. 2010-11-12 23:20:42 +00:00
DwarfDebug.h Remove DW_AT_start_scope support. It is incomplete and superseeded by location entries support. 2010-11-12 23:20:42 +00:00
DwarfException.cpp Reference the personalities. Don't copy them into a new vector. 2010-08-01 01:34:21 +00:00
DwarfException.h Rename "HasCalls" in MachineFrameInfo to "AdjustsStack" to better describe what 2010-05-14 21:14:32 +00:00
Makefile make -fno-rtti the default unless a directory builds with REQUIRES_RTTI. 2010-01-24 20:43:08 +00:00
OcamlGCPrinter.cpp Trailing whitespace. 2010-07-01 01:00:22 +00:00