From 34f864fd382156331c61fbb6b7ae4828108b9d69 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 15 Sep 2011 16:57:13 +0000 Subject: DWARF: wire up .debug_str dumping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139799 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-dwarfdump/llvm-dwarfdump.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/llvm-dwarfdump/llvm-dwarfdump.cpp') 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 dictx(DIContext::getDWARFContext(/*FIXME*/true, DebugInfoSection, DebugAbbrevSection, DebugArangesSection, - DebugLineSection)); + DebugLineSection, + DebugStringSection)); dictx->dump(outs()); } -- cgit v1.2.3