llvm-6502/lib/Target/X86/AsmPrinter
Chris Lattner 228252f981 Make a new X8632_MachoTargetObjectFile TLOF implementation whose
getSymbolForDwarfGlobalReference is smart enough to know that it 
needs to register the stub it references with MachineModuleInfoMachO,
so that it gets emitted at the end of the file.

Move stub emission from X86ATTAsmPrinter::doFinalization to the
new X86ATTAsmPrinter::EmitEndOfAsmFile asmprinter hook.  The important
thing here is that EmitEndOfAsmFile is called *after* the ehframes are
emitted, so we get all the stubs.

This allows us to remove a gross hack from the asmprinter where it would
"just know" that it needed to output stubs for personality functions.
Now this is all driven from a consistent interface.

The testcase change is just reordering the expected output now that the
stubs come out after the ehframe instead of before.

This also unblocks other changes that Bill wants to make.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82269 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-18 20:22:52 +00:00
..
CMakeLists.txt
Makefile
X86AsmPrinter.cpp
X86ATTAsmPrinter.cpp Make a new X8632_MachoTargetObjectFile TLOF implementation whose 2009-09-18 20:22:52 +00:00
X86ATTAsmPrinter.h Make a new X8632_MachoTargetObjectFile TLOF implementation whose 2009-09-18 20:22:52 +00:00
X86ATTInstPrinter.cpp This file can need access to the X86 instruction enums when the table exceeds 32-bits. 2009-09-18 18:08:55 +00:00
X86ATTInstPrinter.h
X86IntelAsmPrinter.cpp
X86IntelAsmPrinter.h
X86MCInstLower.cpp move FnStubs/GVSTubs/HiddenGVStub handling out of the X86 asmprinter 2009-09-16 06:25:03 +00:00
X86MCInstLower.h move FnStubs/GVSTubs/HiddenGVStub handling out of the X86 asmprinter 2009-09-16 06:25:03 +00:00