diff options
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index fe89a418a46..495e09fbae3 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -964,6 +964,10 @@ DWARFContextInMemory::DWARFContextInMemory( Name = Name.substr( Name.find_first_not_of("._z")); // Skip ".", "z" and "_" prefixes. + // Map platform specific debug section names to DWARF standard section + // names. + Name = Obj.mapDebugSectionName(Name); + if (StringRef *SectionData = mapSectionToMember(Name)) { *SectionData = Data; if (Name == "debug_ranges") { @@ -978,10 +982,6 @@ DWARFContextInMemory::DWARFContextInMemory( TypesDWOSections[Section].Data = Data; } - // Map platform specific debug section names to DWARF standard section - // names. - Name = Obj.mapDebugSectionName(Name); - if (RelocatedSection == Obj.section_end()) continue; |