diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-09-18 19:55:00 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-09-18 19:55:00 +0000 |
commit | dc7d460945f8ba14125e556ddce8f8d3869f476d (patch) | |
tree | 9870152976ba6a6ed5f6e307af3d73d10660c278 /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | |
parent | 286fe620ef27c3645ac7dfbfe793671cb5fdba14 (diff) | |
download | bcm5719-llvm-dc7d460945f8ba14125e556ddce8f8d3869f476d.tar.gz bcm5719-llvm-dc7d460945f8ba14125e556ddce8f8d3869f476d.zip |
llvm-dwarfdump: Sink the handling of ShowChildren into DWARFDie::dump(). NFC.
llvm-svn: 313560
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index 353a5bad997..0aacd0c5231 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -222,8 +222,6 @@ void DWARFContext::dump( Optional<uint64_t> DumpOffset; uint64_t DumpType = DumpOpts.DumpType; - unsigned RecDepth = - DumpOpts.ShowChildren ? std::numeric_limits<unsigned>::max() : 0; StringRef Extension = sys::path::extension(DObj->getFileName()); bool IsDWO = (Extension == ".dwo") || (Extension == ".dwp"); @@ -261,7 +259,7 @@ void DWARFContext::dump( if (shouldDump(IsExplicit, Name, DIDT_ID_DebugInfo, Section.Data)) { for (const auto &CU : CUs) if (DumpOffset) - CU->getDIEForOffset(DumpOffset.getValue()).dump(OS, RecDepth); + CU->getDIEForOffset(DumpOffset.getValue()).dump(OS, 0, 0, DumpOpts); else CU->dump(OS, DumpOpts); } @@ -278,7 +276,7 @@ void DWARFContext::dump( for (const auto &TUS : TUSections) for (const auto &TU : TUS) if (DumpOffset) - TU->getDIEForOffset(*DumpOffset).dump(OS, RecDepth); + TU->getDIEForOffset(*DumpOffset).dump(OS, 0, 0, DumpOpts); else TU->dump(OS, DumpOpts); }; |