summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2017-11-22 18:23:55 +0000
committerPaul Robinson <paul.robinson@sony.com>2017-11-22 18:23:55 +0000
commit6ca1dd6fa3e6f8c6517a716cf3703e3a524320d4 (patch)
treef357f5bfffcf726738f2505b47ec84d65750f9a0 /llvm/lib/DebugInfo
parentd5b5bbe22fb87405b60b444c5373931afda0a293 (diff)
downloadbcm5719-llvm-6ca1dd6fa3e6f8c6517a716cf3703e3a524320d4.tar.gz
bcm5719-llvm-6ca1dd6fa3e6f8c6517a716cf3703e3a524320d4.zip
[DwarfDump] -debug-line=offset applies to .dwo too.
llvm-svn: 318856
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index cd7a81fe892..5893f223c07 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -379,9 +379,11 @@ void DWARFContext::dump(
if (It != LineToUnit.end())
U = It->second;
DWARFDebugLine::LineTable LineTable;
+ unsigned OldOffset = Offset;
if (!LineTable.Prologue.parse(LineData, &Offset, U))
break;
- LineTable.dump(OS);
+ if (!DumpOffset || OldOffset == *DumpOffset)
+ LineTable.dump(OS);
}
}
OpenPOWER on IntegriCloud