aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-18 20:22:52 +0000
committerChris Lattner <sabre@nondot.org>2009-09-18 20:22:52 +0000
commitf283fb255f535d56d8cd5f86058ccf2359800e86 (patch)
tree6f169a01303b459be5516de802d237ba72abaf2e /lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
parentb611307c9730ae90448fcacfd8ee9d0d208cc3ee (diff)
downloadexternal_llvm-f283fb255f535d56d8cd5f86058ccf2359800e86.zip
external_llvm-f283fb255f535d56d8cd5f86058ccf2359800e86.tar.gz
external_llvm-f283fb255f535d56d8cd5f86058ccf2359800e86.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
0 files changed, 0 insertions, 0 deletions