1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/lib/MC
Bill Wendling 5c86e999b1 [MC] Don't recreate a label if it's already used
Summary:
This patch keeps track of MCSymbols created for blocks that were
referenced in inline asm. It prevents creating a new symbol which
doesn't refer to the block.

Inline asm may have a reference to a label. The asm parser however
doesn't recognize it as a label and tries to create a new symbol. The
result being that instead of the original symbol (e.g. ".Ltmp0") the
parser replaces it in the inline asm with the new one (e.g. ".Ltmp00")
without updating it in the symbol table. So the machine basic block
retains the "old" symbol (".Ltmp0"), but the inline asm uses the new one
(".Ltmp00").

Reviewers: nickdesaulniers, craig.topper

Subscribers: nathanchance, javed.absar, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65304

llvm-svn: 368477
2019-08-09 20:16:31 +00:00
..
MCDisassembler
MCParser [MC] Don't recreate a label if it's already used 2019-08-09 20:16:31 +00:00
CMakeLists.txt
ConstantPools.cpp
ELFObjectWriter.cpp Revert "Reland [ELF] Loose a condition for relocation with a symbol" 2019-07-22 17:48:53 +00:00
LLVMBuild.txt
MachObjectWriter.cpp
MCAsmBackend.cpp [DebugInfo] Generate fixups as emitting DWARF .debug_frame/.eh_frame. 2019-07-19 02:03:34 +00:00
MCAsmInfo.cpp
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp
MCAsmInfoWasm.cpp
MCAsmInfoXCOFF.cpp Enable assembly output of local commons for AIX 2019-08-08 15:40:35 +00:00
MCAsmMacro.cpp
MCAsmStreamer.cpp Enable assembly output of local commons for AIX 2019-08-08 15:40:35 +00:00
MCAssembler.cpp [DebugInfo] Generate fixups as emitting DWARF .debug_frame/.eh_frame. 2019-07-19 02:03:34 +00:00
MCCodeEmitter.cpp
MCCodePadder.cpp
MCCodeView.cpp
MCContext.cpp [MC] Don't recreate a label if it's already used 2019-08-09 20:16:31 +00:00
MCDwarf.cpp [DebugInfo] Generate fixups as emitting DWARF .debug_frame/.eh_frame. 2019-07-19 02:03:34 +00:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp
MCExpr.cpp [DebugInfo] Some fields do not need relocations even relax is enabled. 2019-07-19 06:10:36 +00:00
MCFragment.cpp
MCInst.cpp
MCInstPrinter.cpp [MC] Delete unused MCInstPrinter::markup overload and getPrintHexStyle 2019-07-25 09:54:12 +00:00
MCInstrAnalysis.cpp [MC] Add MCInstrAnalysis::evaluateMemoryOperandAddress 2019-07-25 06:57:09 +00:00
MCInstrDesc.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp
MCNullStreamer.cpp
MCObjectFileInfo.cpp Stubs out TLOF for AIX and add support for common vars in assembly output. 2019-07-22 19:15:29 +00:00
MCObjectStreamer.cpp
MCObjectWriter.cpp
MCRegisterInfo.cpp Use MCRegister in MCRegisterInfo's interfaces 2019-08-02 20:23:00 +00:00
MCSchedule.cpp
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCSectionWasm.cpp
MCSectionXCOFF.cpp Enable assembly output of local commons for AIX 2019-08-08 15:40:35 +00:00
MCStreamer.cpp Enable assembly output of local commons for AIX 2019-08-08 15:40:35 +00:00
MCSubtargetInfo.cpp Revert "[System Model] [TTI] Update cache and prefetch TTI interfaces" 2019-07-10 18:25:58 +00:00
MCSymbol.cpp
MCSymbolELF.cpp
MCTargetOptions.cpp
MCValue.cpp
MCWasmObjectTargetWriter.cpp
MCWasmStreamer.cpp
MCWin64EH.cpp
MCWinCOFFStreamer.cpp
MCWinEH.cpp
MCXCOFFObjectTargetWriter.cpp
MCXCOFFStreamer.cpp Enable assembly output of local commons for AIX 2019-08-08 15:40:35 +00:00
StringTableBuilder.cpp
SubtargetFeature.cpp
WasmObjectWriter.cpp Delete dead stores 2019-07-12 14:58:15 +00:00
WinCOFFObjectWriter.cpp
XCOFFObjectWriter.cpp Fix build error for VC STL, use llvm::make_unique 2019-07-09 19:51:58 +00:00