[lld] r338642 - Update for DWARF API change
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 1 14:57:15 PDT 2018
Author: rnk
Date: Wed Aug 1 14:57:15 2018
New Revision: 338642
URL: http://llvm.org/viewvc/llvm-project?rev=338642&view=rev
Log:
Update for DWARF API change
Modified:
lld/trunk/ELF/InputFiles.cpp
lld/trunk/ELF/SyntheticSections.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=338642&r1=338641&r2=338642&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Aug 1 14:57:15 2018
@@ -129,7 +129,7 @@ template <class ELFT> void ObjFile<ELFT>
DWARFDataExtractor LineData(Obj, Obj.getLineSection(), Config->IsLE,
Config->Wordsize);
- for (std::unique_ptr<DWARFCompileUnit> &CU : Dwarf->compile_units()) {
+ for (std::unique_ptr<DWARFUnit> &CU : Dwarf->compile_units()) {
auto Report = [](Error Err) {
handleAllErrors(std::move(Err),
[](ErrorInfoBase &Info) { warn(Info.message()); });
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=338642&r1=338641&r2=338642&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Wed Aug 1 14:57:15 2018
@@ -2371,7 +2371,7 @@ static std::vector<InputSection *> getDe
static std::vector<GdbIndexSection::CuEntry> readCuList(DWARFContext &Dwarf) {
std::vector<GdbIndexSection::CuEntry> Ret;
- for (std::unique_ptr<DWARFCompileUnit> &Cu : Dwarf.compile_units())
+ for (std::unique_ptr<DWARFUnit> &Cu : Dwarf.compile_units())
Ret.push_back({Cu->getOffset(), Cu->getLength() + 4});
return Ret;
}
@@ -2381,7 +2381,7 @@ readAddressAreas(DWARFContext &Dwarf, In
std::vector<GdbIndexSection::AddressEntry> Ret;
uint32_t CuIdx = 0;
- for (std::unique_ptr<DWARFCompileUnit> &Cu : Dwarf.compile_units()) {
+ for (std::unique_ptr<DWARFUnit> &Cu : Dwarf.compile_units()) {
DWARFAddressRangesVector Ranges;
Cu->collectAddressRanges(Ranges);
More information about the llvm-commits
mailing list