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 | 07d4b1c455e822c04dfebf8c199f2323eeae2a8f (patch) | |
tree | 0989ce630229dd91bbbed6c66f3be757602ec0b6 /llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | |
parent | a9aa3c18e35ded0d10e16bef2a774989cbd5162f (diff) | |
download | bcm5719-llvm-07d4b1c455e822c04dfebf8c199f2323eeae2a8f.tar.gz bcm5719-llvm-07d4b1c455e822c04dfebf8c199f2323eeae2a8f.zip |
DWARF: wire up .debug_str dumping.
llvm-svn: 139799
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp')
-rw-r--r-- | llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp index 90225deaeef..9618a1a4bba 100644 --- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ b/llvm/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()); } |