diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-07-07 15:20:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-07-07 15:20:55 +0000 |
commit | 7413496f8d3c173cc20516e18bbc9cb2c77f460d (patch) | |
tree | 35341598d66abe8f50dbed306d94c3bdb6c6e64b | |
parent | a6b7efc7e3e8cbf4255b2a018f53fe4498eb0dc9 (diff) | |
download | bcm5719-llvm-7413496f8d3c173cc20516e18bbc9cb2c77f460d.tar.gz bcm5719-llvm-7413496f8d3c173cc20516e18bbc9cb2c77f460d.zip |
Fix variable names. NFC.
llvm-svn: 307406
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index a2255cdab06..1c7a563d869 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -937,8 +937,8 @@ DWARFContextInMemory::DWARFContextInMemory( : FileName(Obj.getFileName()), IsLittleEndian(Obj.isLittleEndian()), AddressSize(Obj.getBytesInAddress()) { for (const SectionRef &Section : Obj.sections()) { - StringRef name; - Section.getName(name); + StringRef Name; + Section.getName(Name); // Skip BSS and Virtual sections, they aren't interesting. bool IsBSS = Section.isBSS(); if (IsBSS) @@ -946,18 +946,18 @@ DWARFContextInMemory::DWARFContextInMemory( bool IsVirtual = Section.isVirtual(); if (IsVirtual) continue; - StringRef data; + StringRef Data; section_iterator RelocatedSection = Section.getRelocatedSection(); // Try to obtain an already relocated version of this section. // Else use the unrelocated section from the object file. We'll have to // apply relocations ourselves later. - if (!L || !L->getLoadedSectionContents(*RelocatedSection, data)) - Section.getContents(data); + if (!L || !L->getLoadedSectionContents(*RelocatedSection, Data)) + Section.getContents(Data); - if (auto Err = maybeDecompress(Section, name, data)) { + if (auto Err = maybeDecompress(Section, Name, Data)) { ErrorPolicy EP = HandleError( - createError("failed to decompress '" + name + "', ", std::move(Err))); + createError("failed to decompress '" + Name + "', ", std::move(Err))); if (EP == ErrorPolicy::Halt) return; continue; @@ -965,26 +965,26 @@ DWARFContextInMemory::DWARFContextInMemory( // Compressed sections names in GNU style starts from ".z", // at this point section is decompressed and we drop compression prefix. - name = name.substr( - name.find_first_not_of("._z")); // Skip ".", "z" and "_" prefixes. + Name = Name.substr( + Name.find_first_not_of("._z")); // Skip ".", "z" and "_" prefixes. - if (StringRef *SectionData = mapSectionToMember(name)) { - *SectionData = data; - if (name == "debug_ranges") { + if (StringRef *SectionData = mapSectionToMember(Name)) { + *SectionData = Data; + if (Name == "debug_ranges") { // FIXME: Use the other dwo range section when we emit it. - RangeDWOSection.Data = data; + RangeDWOSection.Data = Data; } - } else if (name == "debug_types") { + } else if (Name == "debug_types") { // Find debug_types data by section rather than name as there are // multiple, comdat grouped, debug_types sections. - TypesSections[Section].Data = data; - } else if (name == "debug_types.dwo") { - TypesDWOSections[Section].Data = data; + TypesSections[Section].Data = Data; + } else if (Name == "debug_types.dwo") { + TypesDWOSections[Section].Data = Data; } // Map platform specific debug section names to DWARF standard section // names. - name = Obj.mapDebugSectionName(name); + Name = Obj.mapDebugSectionName(Name); if (RelocatedSection == Obj.section_end()) continue; |