diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-15 16:57:13 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-15 16:57:13 +0000 |
commit | 34f864fd382156331c61fbb6b7ae4828108b9d69 (patch) | |
tree | 1f1263c4821c34ae7e4e41f6fe5268ee21abca9d /tools | |
parent | 70796ca867132fd8c767301061afb9760cd69167 (diff) |
DWARF: wire up .debug_str dumping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index 90225deaee..9618a1a4bb 100644 --- a/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -53,6 +53,7 @@ static void DumpInput(const StringRef &Filename) { StringRef DebugAbbrevSection; StringRef DebugLineSection; StringRef DebugArangesSection; + StringRef DebugStringSection; error_code ec; for (ObjectFile::section_iterator i = Obj->begin_sections(), @@ -74,13 +75,16 @@ static void DumpInput(const StringRef &Filename) { DebugLineSection = data; else if (name == "debug_aranges") DebugArangesSection = data; + else if (name == "debug_str") + DebugStringSection = data; } OwningPtr<DIContext> dictx(DIContext::getDWARFContext(/*FIXME*/true, DebugInfoSection, DebugAbbrevSection, DebugArangesSection, - DebugLineSection)); + DebugLineSection, + DebugStringSection)); dictx->dump(outs()); } |