summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
index 1af51a85d18..218bf381567 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
@@ -115,20 +115,14 @@ bool DWARFLocationTable::dumpLocationList(uint64_t *Offset, raw_ostream &OS,
OS << format("0x%8.8" PRIx64 ": ", *Offset);
Error E = visitLocationList(Offset, [&](const DWARFLocationEntry &E) {
Expected<Optional<DWARFLocationExpression>> Loc = Interp.Interpret(E);
- if (!Loc || DumpOpts.DisplayRawContents)
+ if (!Loc || DumpOpts.Verbose)
dumpRawEntry(E, OS, Indent);
if (Loc && *Loc) {
OS << "\n";
OS.indent(Indent);
- if (DumpOpts.DisplayRawContents)
+ if (DumpOpts.Verbose)
OS << " => ";
-
- DIDumpOptions RangeDumpOpts(DumpOpts);
- RangeDumpOpts.DisplayRawContents = false;
- const DWARFObject *Obj = nullptr;
- if (U)
- Obj = &U->getContext().getDWARFObj();
- Loc.get()->Range->dump(OS, Data.getAddressSize(), RangeDumpOpts, Obj);
+ Loc.get()->Range->dump(OS, Data.getAddressSize(), DumpOpts);
}
if (!Loc)
consumeError(Loc.takeError());
OpenPOWER on IntegriCloud