Reapply my previous asmprinter changes now with more testing and two
authorChris Lattner <sabre@nondot.org>
Tue, 14 Jul 2009 18:17:16 +0000 (18:17 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 14 Jul 2009 18:17:16 +0000 (18:17 +0000)
commitb8158acc23f5f0bf235fb1c6a8182a38ec9b00b2
tree83b8562d6775f42cf93a08cf76d96a5107b67747
parent95cf30c444707634bbd950f13405b6c8bcfe496b
Reapply my previous asmprinter changes now with more testing and two
additional bug fixes:

1. The bug that everyone hit was a problem in the asmprinter where it
   would remove $stub but keep the L prefix on a name when emitting the
   indirect symbol.  This is easy to fix by keeping the name of the stub
   and the name of the symbol in a StringMap instead of just keeping a
   StringSet and trying to reconstruct it late.

2. There was a problem printing the personality function.  The current
   logic to print out the personality function from the DWARF information
   is a bit of a cesspool right now that duplicates a bunch of other
   logic in the asm printer.  The short version of it is that it depends
   on emitting both the L and _ prefix for symbols (at least on darwin)
   and until I can untangle it, it is best to switch the mangler back to
   emitting both prefixes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75646 91177308-0d34-0410-b5e6-96231b3b80d8
27 files changed:
include/llvm/Support/Mangler.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/ELFWriter.cpp
lib/CodeGen/MachOCodeEmitter.cpp
lib/CodeGen/MachOWriter.cpp
lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp
lib/Target/CBackend/CBackend.cpp
lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp
lib/Target/DarwinTargetAsmInfo.cpp
lib/Target/IA64/AsmPrinter/IA64AsmPrinter.cpp
lib/Target/MSIL/MSILWriter.cpp
lib/Target/MSP430/MSP430AsmPrinter.cpp
lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
lib/Target/PIC16/PIC16AsmPrinter.cpp
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp
lib/Target/XCore/XCoreAsmPrinter.cpp
lib/VMCore/Mangler.cpp
test/CodeGen/PowerPC/private.ll
test/CodeGen/X86/private-2.ll
tools/bugpoint/Miscompilation.cpp
tools/lto/LTOCodeGenerator.cpp
tools/lto/LTOModule.cpp