From 4ffd3f44e34283506958263a7f9eb2c9d149087f Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 10 Dec 2019 14:10:15 -0800 Subject: DebugInfo: Clarify some more reasons v4 loc.dwo can't share much implementation with loclists.dwo --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/AsmPrinter') 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); } -- cgit v1.2.3