llvm-6502/lib/CodeGen/AsmPrinter
Chris Lattner 38686bdffd introduce a new recoverable error handling API to LLVMContext
and use it in one place in inline asm handling stuff.  Before
we'd generate this for an invalid modifier letter:

$ clang asm.c -c -o t.o
fatal error: error in backend: Invalid operand found in inline asm: 'abc incl    ${0:Z}'
INLINEASM <es:abc incl    ${0:Z}>, 10, %EAX<def>, 2147483657, %EAX, 14, %EFLAGS<earlyclobber,def,dead>, <!-1>


Now we generate this:

$ clang asm.c -c -o t.o
error: invalid operand in inline asm: 'incl    ${0:Z}'
asm.c:3:12: note: generated from here
  __asm__ ("incl    %Z0" : "+r" (X));
           ^
1 error generated.

This is much better but still admittedly not great ("why" is the operand 
invalid??), codegen should try harder with its diagnostics :)



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100723 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-07 23:40:44 +00:00
..
AsmPrinter.cpp rename llvm::llvm_report_error -> llvm::report_fatal_error 2010-04-07 22:58:41 +00:00
AsmPrinterDwarf.cpp Move EmitFrameMoves into AsmPrinter. 2010-04-04 23:41:46 +00:00
AsmPrinterInlineAsm.cpp introduce a new recoverable error handling API to LLVMContext 2010-04-07 23:40:44 +00:00
CMakeLists.txt finally blast DwarfWriter away. 2010-04-05 05:12:59 +00:00
DIE.cpp change SizeOf to take AsmPrinter instead of TargetData, 2010-04-05 00:18:22 +00:00
DIE.h change SizeOf to take AsmPrinter instead of TargetData, 2010-04-05 00:18:22 +00:00
DwarfDebug.cpp Remove unused method. 2010-04-07 11:23:46 +00:00
DwarfDebug.h Remove unused method. 2010-04-07 11:23:46 +00:00
DwarfException.cpp Workaround the breakage in r100616 by guarding all timers with 2010-04-07 10:44:46 +00:00
DwarfException.h Use the "NamedGroupTimer" class to categorize DWARF emission better. 2010-04-07 09:28:04 +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 rename llvm::llvm_report_error -> llvm::report_fatal_error 2010-04-07 22:58:41 +00:00