summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-06-19 17:59:14 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-06-19 17:59:14 +0000
commit6072096fd63c1996cfe731ecddcb6b3232e37b70 (patch)
treead99f0e4f93ba1faa399b4411db40e7417ba67c4 /lib
parent36a321160e61149088f306c3605a9ad5fdd67e0a (diff)
downloadllvm-6072096fd63c1996cfe731ecddcb6b3232e37b70.tar.gz
llvm-6072096fd63c1996cfe731ecddcb6b3232e37b70.tar.bz2
llvm-6072096fd63c1996cfe731ecddcb6b3232e37b70.tar.xz
DebugInfo: Fission: Ensure the address pool entries for location lists are emitted.
The address pool was being emitted before location lists. The latter could add more entries to the pool which would be lost/never emitted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 3847eb124f..f78ca2c03b 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1038,9 +1038,9 @@ void DwarfDebug::endModule() {
emitDebugInfoDWO();
emitDebugAbbrevDWO();
emitDebugLineDWO();
+ emitDebugLocDWO();
// Emit DWO addresses.
AddrPool.emit(*Asm, Asm->getObjFileLowering().getDwarfAddrSection());
- emitDebugLocDWO();
} else
// Emit info into a debug loc section.
emitDebugLoc();