summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-11-19 19:43:59 +0000
committerEric Christopher <echristo@gmail.com>2012-11-19 19:43:59 +0000
commit97c3472bf915ce9124f682f6c8ce9e4baff7c284 (patch)
tree94d588d7a95c0b4abfb8be7c47d30fad2276b85e /lib/CodeGen
parente42561ad0c98b132515db89f2994c96d93e9587b (diff)
downloadllvm-97c3472bf915ce9124f682f6c8ce9e4baff7c284.tar.gz
llvm-97c3472bf915ce9124f682f6c8ce9e4baff7c284.tar.bz2
llvm-97c3472bf915ce9124f682f6c8ce9e4baff7c284.tar.xz
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 742a779b6f..aa10539763 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -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();