summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit73bf9fa7bac3994f488e3030bd31f7a4a7cf9eab (patch)
treec7e074babc757c53e38d118ca7b9fa2fef29377d /llvm/lib/DebugInfo
parenta9f810b6b528c157c2e595f32cbef9c7102ef1f8 (diff)
downloadbcm5719-llvm-73bf9fa7bac3994f488e3030bd31f7a4a7cf9eab.tar.gz
bcm5719-llvm-73bf9fa7bac3994f488e3030bd31f7a4a7cf9eab.zip
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. llvm-svn: 170839
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/DWARFContext.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp
index 91ed2d22abf..9e67b231167 100644
--- a/llvm/lib/DebugInfo/DWARFContext.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud