summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-09-13 22:09:01 +0000
committerAdrian Prantl <aprantl@apple.com>2017-09-13 22:09:01 +0000
commit3ae35eb56b11ec27bc2fcba6aeeebaf7615bd6c8 (patch)
tree30a8d11fd6248bf149c269f3225d86f1904c417c /llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
parentafe2bdd773455bb8728e969c3fced914c1bf6d2c (diff)
downloadbcm5719-llvm-3ae35eb56b11ec27bc2fcba6aeeebaf7615bd6c8.tar.gz
bcm5719-llvm-3ae35eb56b11ec27bc2fcba6aeeebaf7615bd6c8.zip
llvm-dwarfdump: automatically dump both regular and .dwo variant of sections
Since users typically don't really care about the .dwo / non.dwo distinction, this patch makes it so dwarfdump --debug-<info,...> dumps .debug_info and (if available) also .debug_info.dwo. This simplifies the command line interface (I've removed all dwo-specific dump options) and makes the tool friendlier to use. Differential Revision: https://reviews.llvm.org/D37771 llvm-svn: 313207
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp')
-rw-r--r--llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index 8508982ab39..7e413866dc6 100644
--- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -53,7 +53,7 @@ static opt<bool> DumpAll("all", desc("Dump all debug info sections"),
cat(SectionCategory));
static alias DumpAllAlias("a", desc("Alias for -all"), aliasopt(DumpAll));
-static uint64_t DumpType = DIDT_Null;
+static unsigned DumpType = DIDT_Null;
#define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME) \
static opt<bool> Dump##ENUM_NAME(CMDLINE_NAME, \
desc("Dump the " ELF_NAME " section"), \
@@ -99,8 +99,7 @@ static void DumpObjectFile(ObjectFile &Obj, Twine Filename) {
Filename.str() + ": ");
// The UUID dump already contains all the same information.
if (!(DumpType & DIDT_UUID) || DumpType == DIDT_All)
- outs() << Filename << ":\tfile format " << Obj.getFileFormatName()
- << "\n\n";
+ outs() << Filename << ":\tfile format " << Obj.getFileFormatName() << '\n';
// Dump the complete DWARF structure.
DICtx->dump(outs(), GetDumpOpts());
OpenPOWER on IntegriCloud