dwarfdump: Include the name in the unit description, even in non-summarized mode
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 18 Oct 2016 21:16:45 +0000 (21:16 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 18 Oct 2016 21:16:45 +0000 (21:16 +0000)
(accidentally removed this from my previous change when I was rejecting
some clang-format formatting... )

llvm-svn: 284539

llvm/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp

index 8c8aea3..0338b40 100644 (file)
@@ -45,6 +45,7 @@ void DWARFTypeUnit::dump(raw_ostream &OS, bool SummarizeTypes) {
      << " version = " << format("0x%04x", getVersion())
      << " abbr_offset = " << format("0x%04x", getAbbreviations()->getOffset())
      << " addr_size = " << format("0x%02x", getAddressByteSize())
+     << "name = '" << Name << "'"
      << " type_signature = " << format("0x%16" PRIx64, TypeHash)
      << " type_offset = " << format("0x%04x", TypeOffset)
      << " (next unit at " << format("0x%08x", getNextUnitOffset()) << ")\n";