summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-09-30 22:06:26 +0000
committerBob Wilson <bob.wilson@apple.com>2009-09-30 22:06:26 +0000
commitb633d7a6659bd80e25d4454636bdeb3485009829 (patch)
treedb17de2a0f8fe2d00abbdef52c5eb2dfc843ba71 /clang/lib/CodeGen/CodeGenModule.cpp
parent66950a32d9083727a89ea489b07b90d29f6c9b87 (diff)
downloadbcm5719-llvm-b633d7a6659bd80e25d4454636bdeb3485009829.tar.gz
bcm5719-llvm-b633d7a6659bd80e25d4454636bdeb3485009829.zip
Add a new virtual EmitStartOfAsmFile method to the AsmPrinter and use this
to emit target-specific things at the beginning of the asm output. This fixes a problem for PPC, where the text sections are not being kept together as expected. The base class doInitialization code calls DW->BeginModule() which emits a bunch of DWARF section directives. The PPC doInitialization code then emits all the TEXT section directives, with the intention that they will be kept together. But as I understand it, the Darwin assembler treats the default TEXT section as a special case and moves it to the beginning of the file, which means that all those DWARF sections are in the middle of the text. With this change, the EmitStartOfAsmFile hook is called before the DWARF section directives are emitted, so that all the PPC text section directives come out right at the beginning of the file. llvm-svn: 83176
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud