llvm-6502/lib/CodeGen/AsmPrinter
David Peixotto 4ed2667c13 Remove const_cast for STI when parsing inline asm
In a previous commit (r199818) we added a const_cast to an existing
subtarget info instead of creating a new one so that we could reuse
it when creating the TargetAsmParser for parsing inline assembly.
This cast was necessary because we needed to reuse the existing STI
to avoid generating incorrect code when the inline asm contained
mode-switching directives (e.g. .code 16).

The root cause of the failure was that there was an implicit sharing
of the STI between the parser and the MCCodeEmitter. To fix a
different but related issue, we now explicitly pass the STI to the
MCCodeEmitter (see commits r200345-r200351).

The const_cast is no longer necessary and we can now create a fresh
STI for the inline asm parser to use.

Differential Revision: http://llvm-reviews.chandlerc.com/D2709


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200929 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-06 18:19:40 +00:00
..
ARMException.cpp Enable EHABI by default 2014-01-29 11:50:56 +00:00
AsmPrinter.cpp Remove support for not using .loc directives. 2014-02-05 18:00:21 +00:00
AsmPrinterDwarf.cpp Simplify check. 2013-12-04 22:29:02 +00:00
AsmPrinterHandler.h Remove weak vtables. No functional change. 2013-12-14 12:23:14 +00:00
AsmPrinterInlineAsm.cpp Remove const_cast for STI when parsing inline asm 2014-02-06 18:19:40 +00:00
CMakeLists.txt Reland r200340 - 'Add line table debug info to COFF files when using a win32 triple' 2014-01-30 01:39:17 +00:00
DIE.cpp Remove some unused #includes 2014-02-01 13:12:54 +00:00
DIE.h Re-sort all of the includes with ./utils/sort_includes.py so that 2014-01-07 11:48:04 +00:00
DIEHash.cpp Add support for DW_FORM_flag and DW_FORM_flag_present to the DIE hashing 2014-01-31 20:02:58 +00:00
DIEHash.h Formatting and 80-col. 2013-11-19 09:28:34 +00:00
DwarfAccelTable.cpp Rename DwarfUnits to DwarfFile to help avoid some naming confusion. 2013-12-05 18:06:10 +00:00
DwarfAccelTable.h Rename DwarfUnits to DwarfFile to help avoid some naming confusion. 2013-12-05 18:06:10 +00:00
DwarfCFIException.cpp MC: Add support for .cfi_startproc simple 2014-01-27 17:20:25 +00:00
DwarfDebug.cpp Remove support for not using .loc directives. 2014-02-05 18:00:21 +00:00
DwarfDebug.h Make the compile unit map a MapVector so that we can assume a stable 2014-01-29 22:06:23 +00:00
DwarfException.cpp Move the llvm mangler to lib/IR. 2014-01-07 21:19:40 +00:00
DwarfException.h Reland 196270 "Generalize debug info / EH emission in AsmPrinter" 2013-12-03 15:10:23 +00:00
DwarfUnit.cpp DebugInfo: Remove some unneeded conditionals now that DIBuilder no longer emits zero-length arrays as {i32 0} 2014-02-04 01:23:52 +00:00
DwarfUnit.h Revert "Use DW_AT_high_pc and DW_AT_low_pc for the high and low pc for a" 2014-01-24 11:52:53 +00:00
ErlangGCPrinter.cpp Re-sort all of the includes with ./utils/sort_includes.py so that 2014-01-07 11:48:04 +00:00
LLVMBuild.txt Add proper dependencies to LLVMBuild.txt in llvm/lib. 2013-12-10 05:39:34 +00:00
Makefile
OcamlGCPrinter.cpp Move the llvm mangler to lib/IR. 2014-01-07 21:19:40 +00:00
Win64Exception.cpp Move the llvm mangler to lib/IR. 2014-01-07 21:19:40 +00:00
WinCodeViewLineTables.cpp Reland r200340 - 'Add line table debug info to COFF files when using a win32 triple' 2014-01-30 01:39:17 +00:00
WinCodeViewLineTables.h Reland r200340 - 'Add line table debug info to COFF files when using a win32 triple' 2014-01-30 01:39:17 +00:00