diff options
author | Paul Robinson <paul.robinson@sony.com> | 2017-11-22 18:23:55 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2017-11-22 18:23:55 +0000 |
commit | 6ca1dd6fa3e6f8c6517a716cf3703e3a524320d4 (patch) | |
tree | f357f5bfffcf726738f2505b47ec84d65750f9a0 /llvm/lib/DebugInfo | |
parent | d5b5bbe22fb87405b60b444c5373931afda0a293 (diff) | |
download | bcm5719-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.cpp | 4 |
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); } } |