From: Reid Kleckner Date: Wed, 1 Aug 2018 21:57:15 +0000 (+0000) Subject: Update for DWARF API change X-Git-Tag: llvmorg-8.0.0-rc1~11963 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c07f9bb83ad8ec11cd31c39da987a1bb8eae3e2f;p=platform%2Fupstream%2Fllvm.git Update for DWARF API change llvm-svn: 338642 --- 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);