mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
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
This commit is contained in:
parent
cef81b37c7
commit
b66fc293a2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user