summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2019-12-10 14:10:15 -0800
committerDavid Blaikie <dblaikie@gmail.com>2019-12-10 14:11:03 -0800
commit4ffd3f44e34283506958263a7f9eb2c9d149087f (patch)
treec98be4f8c2d32100c771e3533db26186b4bb6f65
parent30038da15b18ac4e34b9ea7a648382ae481e4770 (diff)
downloadbcm5719-llvm-4ffd3f44e34283506958263a7f9eb2c9d149087f.tar.gz
bcm5719-llvm-4ffd3f44e34283506958263a7f9eb2c9d149087f.zip
DebugInfo: Clarify some more reasons v4 loc.dwo can't share much implementation with loclists.dwo
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 4def44cd776..1e12b39a978 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2539,6 +2539,8 @@ void DwarfDebug::emitDebugLocDWO() {
Asm->emitInt8(dwarf::DW_LLE_startx_length);
unsigned idx = AddrPool.getIndex(Entry.Begin);
Asm->EmitULEB128(idx);
+ // Also the pre-standard encoding is slightly different, emitting this as
+ // an address-length entry here, but its a ULEB128 in DWARFv5 loclists.
Asm->EmitLabelDifference(Entry.End, Entry.Begin, 4);
emitDebugLocEntryLocation(Entry, List.CU);
}
OpenPOWER on IntegriCloud