DebugInfo: Fission: Ensure the address pool entries for location lists are emitted.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index 3847eb124f3d28b794f785d9cef840c55d2efda2..f78ca2c03b4ec247a29ce4e2ee141318da349244 100644 (file)
@@ -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();