Simplify debug_loc.dwo handling slightly.
llvm-svn: 205322
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
index 34f070e..cea9df1 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
@@ -562,9 +562,7 @@
DwarfDebug *DD = AP->getDwarfDebug();
MCSymbol *Label = AP->GetTempSymbol("debug_loc", Index);
- if (DD->useSplitDwarf())
- AP->EmitLabelDifference(Label, DD->getDebugLocDWOSym(), 4);
- else if (AP->MAI->doesDwarfUseRelocationsAcrossSections())
+ if (AP->MAI->doesDwarfUseRelocationsAcrossSections() && !DD->useSplitDwarf())
AP->EmitSectionOffset(Label, DD->getDebugLocSym());
else
AP->EmitLabelDifference(Label, DD->getDebugLocSym(), 4);