From c07f9bb83ad8ec11cd31c39da987a1bb8eae3e2f Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 1 Aug 2018 21:57:15 +0000 Subject: [PATCH] Update for DWARF API change llvm-svn: 338642 --- lld/ELF/InputFiles.cpp | 2 +- lld/ELF/SyntheticSections.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 0eb605a..ed4a32d 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -129,7 +129,7 @@ template void ObjFile::initializeDwarf() { DWARFDataExtractor LineData(Obj, Obj.getLineSection(), Config->IsLE, Config->Wordsize); - for (std::unique_ptr &CU : Dwarf->compile_units()) { + for (std::unique_ptr &CU : Dwarf->compile_units()) { auto Report = [](Error Err) { handleAllErrors(std::move(Err), [](ErrorInfoBase &Info) { warn(Info.message()); }); diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index ae02434..907eaf1 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -2371,7 +2371,7 @@ static std::vector getDebugInfoSections() { static std::vector readCuList(DWARFContext &Dwarf) { std::vector Ret; - for (std::unique_ptr &Cu : Dwarf.compile_units()) + for (std::unique_ptr &Cu : Dwarf.compile_units()) Ret.push_back({Cu->getOffset(), Cu->getLength() + 4}); return Ret; } @@ -2381,7 +2381,7 @@ readAddressAreas(DWARFContext &Dwarf, InputSection *Sec) { std::vector Ret; uint32_t CuIdx = 0; - for (std::unique_ptr &Cu : Dwarf.compile_units()) { + for (std::unique_ptr &Cu : Dwarf.compile_units()) { DWARFAddressRangesVector Ranges; Cu->collectAddressRanges(Ranges); -- 2.7.4