[lld] r368190 - API update for change to LLVM's lib/DebugInfo/DWARF
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 10:18:18 PDT 2019
Author: dblaikie
Date: Wed Aug 7 10:18:18 2019
New Revision: 368190
URL: http://llvm.org/viewvc/llvm-project?rev=368190&view=rev
Log:
API update for change to LLVM's lib/DebugInfo/DWARF
Modified:
lld/trunk/ELF/DWARF.cpp
lld/trunk/ELF/DWARF.h
lld/trunk/ELF/SyntheticSections.cpp
Modified: lld/trunk/ELF/DWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DWARF.cpp?rev=368190&r1=368189&r2=368190&view=diff
==============================================================================
--- lld/trunk/ELF/DWARF.cpp (original)
+++ lld/trunk/ELF/DWARF.cpp Wed Aug 7 10:18:18 2019
@@ -33,11 +33,11 @@ template <class ELFT> LLDDwarfObj<ELFT>:
if (LLDDWARFSection *m =
StringSwitch<LLDDWARFSection *>(sec->name)
.Case(".debug_addr", &addrSection)
- .Case(".debug_gnu_pubnames", &gnuPubNamesSection)
- .Case(".debug_gnu_pubtypes", &gnuPubTypesSection)
+ .Case(".debug_gnu_pubnames", &gnuPubnamesSection)
+ .Case(".debug_gnu_pubtypes", &gnuPubtypesSection)
.Case(".debug_info", &infoSection)
- .Case(".debug_ranges", &rangeSection)
- .Case(".debug_rnglists", &rngListsSection)
+ .Case(".debug_ranges", &rangesSection)
+ .Case(".debug_rnglists", &rnglistsSection)
.Case(".debug_line", &lineSection)
.Default(nullptr)) {
m->Data = toStringRef(sec->data());
@@ -50,7 +50,7 @@ template <class ELFT> LLDDwarfObj<ELFT>:
else if (sec->name == ".debug_str")
strSection = toStringRef(sec->data());
else if (sec->name == ".debug_line_str")
- lineStringSection = toStringRef(sec->data());
+ lineStrSection = toStringRef(sec->data());
}
}
Modified: lld/trunk/ELF/DWARF.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DWARF.h?rev=368190&r1=368189&r2=368190&view=diff
==============================================================================
--- lld/trunk/ELF/DWARF.h (original)
+++ lld/trunk/ELF/DWARF.h Wed Aug 7 10:18:18 2019
@@ -32,12 +32,12 @@ public:
f(infoSection);
}
- const llvm::DWARFSection &getRangeSection() const override {
- return rangeSection;
+ const llvm::DWARFSection &getRangesSection() const override {
+ return rangesSection;
}
const llvm::DWARFSection &getRnglistsSection() const override {
- return rngListsSection;
+ return rnglistsSection;
}
const llvm::DWARFSection &getLineSection() const override {
@@ -48,18 +48,18 @@ public:
return addrSection;
}
- const llvm::DWARFSection &getGnuPubNamesSection() const override {
- return gnuPubNamesSection;
+ const llvm::DWARFSection &getGnuPubnamesSection() const override {
+ return gnuPubnamesSection;
}
- const llvm::DWARFSection &getGnuPubTypesSection() const override {
- return gnuPubTypesSection;
+ const llvm::DWARFSection &getGnuPubtypesSection() const override {
+ return gnuPubtypesSection;
}
StringRef getFileName() const override { return ""; }
StringRef getAbbrevSection() const override { return abbrevSection; }
- StringRef getStringSection() const override { return strSection; }
- StringRef getLineStringSection() const override { return lineStringSection; }
+ StringRef getStrSection() const override { return strSection; }
+ StringRef getLineStrSection() const override { return lineStrSection; }
bool isLittleEndian() const override {
return ELFT::TargetEndianness == llvm::support::little;
@@ -74,16 +74,16 @@ private:
uint64_t pos,
ArrayRef<RelTy> rels) const;
- LLDDWARFSection gnuPubNamesSection;
- LLDDWARFSection gnuPubTypesSection;
+ LLDDWARFSection gnuPubnamesSection;
+ LLDDWARFSection gnuPubtypesSection;
LLDDWARFSection infoSection;
- LLDDWARFSection rangeSection;
- LLDDWARFSection rngListsSection;
+ LLDDWARFSection rangesSection;
+ LLDDWARFSection rnglistsSection;
LLDDWARFSection lineSection;
LLDDWARFSection addrSection;
StringRef abbrevSection;
StringRef strSection;
- StringRef lineStringSection;
+ StringRef lineStrSection;
};
} // namespace elf
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=368190&r1=368189&r2=368190&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Wed Aug 7 10:18:18 2019
@@ -2505,8 +2505,8 @@ template <class ELFT>
static std::vector<GdbIndexSection::NameAttrEntry>
readPubNamesAndTypes(const LLDDwarfObj<ELFT> &obj,
const std::vector<GdbIndexSection::CuEntry> &cUs) {
- const DWARFSection &pubNames = obj.getGnuPubNamesSection();
- const DWARFSection &pubTypes = obj.getGnuPubTypesSection();
+ const DWARFSection &pubNames = obj.getGnuPubnamesSection();
+ const DWARFSection &pubTypes = obj.getGnuPubtypesSection();
std::vector<GdbIndexSection::NameAttrEntry> ret;
for (const DWARFSection *pub : {&pubNames, &pubTypes}) {
More information about the llvm-commits
mailing list