diff options
| author | Adrian Prantl <aprantl@apple.com> | 2017-09-20 17:44:00 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2017-09-20 17:44:00 +0000 |
| commit | d3f9f2138d953025cf46720138ee41dd567e5b4d (patch) | |
| tree | 57f159b25464655b5e4eddef36f9f725ec6f5d9b /llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp | |
| parent | 8b250344e9bbf2d61c329cef7d5ee90b7a9cd44f (diff) | |
llvm-dwarfdump: implement --recurse-depth=<N>
This patch implements the Darwin dwarfdump option --recurse-depth=<N>,
which limits the recursion depth when selectively printing DIEs at an
offset.
Differential Revision: https://reviews.llvm.org/D38064
llvm-svn: 313778
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp b/llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp index 358e9bf43d00..43b235621d18 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp @@ -27,7 +27,7 @@ void DWARFCompileUnit::dump(raw_ostream &OS, DIDumpOptions DumpOpts) { << ")\n"; if (DWARFDie CUDie = getUnitDIE(false)) - CUDie.dump(OS, -1U, 0, DumpOpts); + CUDie.dump(OS, 0, DumpOpts); else OS << "<compile unit can't be parsed!>\n\n"; } |
