mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 06:30:39 +00:00
Move section label emission to module end. Nothing should be
depending on them being emitted before the text and/or data sections and testing didn't uncover any. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e42561ad0c
commit
97c3472bf9
@ -791,9 +791,6 @@ void DwarfDebug::beginModule(Module *M) {
|
||||
// Tell MMI that we have debug info.
|
||||
MMI->setDebugInfoAvailability(true);
|
||||
|
||||
// Emit initial sections.
|
||||
EmitSectionLabels();
|
||||
|
||||
// Prime section data.
|
||||
SectionMap.insert(Asm->getObjFileLowering().getTextSection());
|
||||
}
|
||||
@ -876,6 +873,9 @@ void DwarfDebug::endModule() {
|
||||
// Compute DIE offsets and sizes.
|
||||
computeSizeAndOffsets();
|
||||
|
||||
// Emit initial sections.
|
||||
EmitSectionLabels();
|
||||
|
||||
// Emit all the DIEs into a debug info section
|
||||
emitDebugInfo();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user