[DWARFDebugLoc] Tweak error message when resolving offset pairs with no base address
authorPavel Labath <pavel@labath.sk>
Thu, 9 Jan 2020 09:14:30 +0000 (10:14 +0100)
committerPavel Labath <pavel@labath.sk>
Thu, 9 Jan 2020 09:20:42 +0000 (10:20 +0100)
commit0541a9d4e7f85c1f08f27fe0c0cae293bbb3903a
tree550846f54ae2b9c063a94b1c548e45a853dce50a
parent8f1887456ab4ba24a62ccb19d0d04b08972a0289
[DWARFDebugLoc] Tweak error message when resolving offset pairs with no base address

The previous message mentioned DW_LLE_offset_pair, but this is
incorrect/confusing because we can get this message even with DWARF4
(which does not use DW_LLE encodings). This happens because DWARF<=4
location entries are "upgraded" to DWARF v5 during parsing.

The new error message refrains from referencing specific constants.
Fixes pr44482.
llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp