summaryrefslogtreecommitdiff
path: root/lib/DebugInfo
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-12-21 04:08:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-12-21 04:08:03 +0000
commitb66fc293a2248564ae341f40882243dacccc42f3 (patch)
treec2c4116639b913cc30584284cc04d73ef5faf823 /lib/DebugInfo
parentcef81b37c77978cd4dddb4a5ad13564793ded155 (diff)
downloadllvm-b66fc293a2248564ae341f40882243dacccc42f3.tar.gz
llvm-b66fc293a2248564ae341f40882243dacccc42f3.tar.bz2
llvm-b66fc293a2248564ae341f40882243dacccc42f3.tar.xz
Don't skip __DWARF,
Now that we don't merge section and segment names, we don't need to skip the segment name to get to the section name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r--lib/DebugInfo/DWARFContext.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp
index 91ed2d22ab..9e67b23116 100644
--- a/lib/DebugInfo/DWARFContext.cpp
+++ b/lib/DebugInfo/DWARFContext.cpp
@@ -311,8 +311,6 @@ DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile *Obj) :
StringRef data;
i->getContents(data);
- if (name.startswith("__DWARF,"))
- name = name.substr(8); // Skip "__DWARF," prefix.
name = name.substr(name.find_first_not_of("._")); // Skip . and _ prefixes.
if (name == "debug_info")
InfoSection = data;