aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-03-02 00:30:24 +0000
committerEric Christopher <echristo@apple.com>2012-03-02 00:30:24 +0000
commit7550f7dce65f96aa2e95c60b04d6c9650343a5df (patch)
tree26be4677d49e42c799c20431d954c66019b315c2 /lib/CodeGen
parentfc501a3ec9d97e372ecb1bd9cf32d861da46b2c9 (diff)
downloadexternal_llvm-7550f7dce65f96aa2e95c60b04d6c9650343a5df.zip
external_llvm-7550f7dce65f96aa2e95c60b04d6c9650343a5df.tar.gz
external_llvm-7550f7dce65f96aa2e95c60b04d6c9650343a5df.tar.bz2
Revert "Reorder the sections being output to reduce the number of assembler"
The inline table needs to be constructed ahead of time so that it doesn't try to create new strings while we're emitting everything. This reverts commit a8ff9bccb399183cdd5f1c3cec2bda763664b4b0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151864 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 9f1aed4..58e40e1 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -804,9 +804,6 @@ void DwarfDebug::endModule() {
// Compute DIE offsets and sizes.
computeSizeAndOffsets();
- // Emit info into a debug str section.
- emitDebugStr();
-
// Emit all the DIEs into a debug info section
emitDebugInfo();
@@ -839,6 +836,9 @@ void DwarfDebug::endModule() {
// Emit inline info.
emitDebugInlineInfo();
+ // Emit info into a debug str section.
+ emitDebugStr();
+
// clean up.
DeleteContainerSeconds(DeadFnScopeMap);
SPMap.clear();