[llvm-commits] [llvm] r170839 - /llvm/trunk/lib/DebugInfo/DWARFContext.cpp
Rafael Espindola
rafael.espindola at gmail.com
Thu Dec 20 20:08:03 PST 2012
Author: rafael
Date: Thu Dec 20 22:08:03 2012
New Revision: 170839
URL: http://llvm.org/viewvc/llvm-project?rev=170839&view=rev
Log:
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.
Modified:
llvm/trunk/lib/DebugInfo/DWARFContext.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARFContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFContext.cpp?rev=170839&r1=170838&r2=170839&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFContext.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFContext.cpp Thu Dec 20 22:08:03 2012
@@ -311,8 +311,6 @@
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;
More information about the llvm-commits
mailing list