From b66fc293a2248564ae341f40882243dacccc42f3 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 21 Dec 2012 04:08:03 +0000 Subject: [PATCH] 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 --- lib/DebugInfo/DWARFContext.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp index 91ed2d22abf..9e67b231167 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;