summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-09-21 18:52:03 +0000
committerAdrian Prantl <aprantl@apple.com>2017-09-21 18:52:03 +0000
commit62528e69c0de1f4be308fcdcd78243646079cae1 (patch)
tree9dd0b7f44af39c166bff2b0b12b0684e33ad6d9c /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
parentb542f1f3dff3f455af925a9413ebb8ff28fd2788 (diff)
downloadbcm5719-llvm-62528e69c0de1f4be308fcdcd78243646079cae1.tar.gz
bcm5719-llvm-62528e69c0de1f4be308fcdcd78243646079cae1.zip
llvm-dwarfdump support --debug-frame=<offset> and --eh-frame=<offset>
llvm-svn: 313900
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index f20a7ca024b..69a4fe64b75 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -299,14 +299,12 @@ void DWARFContext::dump(
}
if (shouldDump(Explicit, ".debug_frame", DIDT_ID_DebugFrame,
- DObj->getDebugFrameSection())) {
- getDebugFrame()->dump(OS);
- }
+ DObj->getDebugFrameSection()))
+ getDebugFrame()->dump(OS, DumpOffset);
if (shouldDump(Explicit, ".eh_frame", DIDT_ID_DebugFrame,
- DObj->getEHFrameSection())) {
- getEHFrame()->dump(OS);
- }
+ DObj->getEHFrameSection()))
+ getEHFrame()->dump(OS, DumpOffset);
if (DumpType & DIDT_DebugMacro) {
if (Explicit || !getDebugMacro()->empty()) {
OpenPOWER on IntegriCloud