diff --git a/libbacktrace/BacktraceOffline.cpp b/libbacktrace/BacktraceOffline.cpp index e84ae74d1..c10634b04 100644 --- a/libbacktrace/BacktraceOffline.cpp +++ b/libbacktrace/BacktraceOffline.cpp @@ -561,7 +561,7 @@ DebugFrameInfo* ReadDebugFrameFromELFFile(const llvm::object::ELFFile* elf uint64_t eh_frame_vaddr = 0; std::vector eh_frame_data; - for (auto it = elf->begin_sections(); it != elf->end_sections(); ++it) { + for (auto it = elf->section_begin(); it != elf->section_end(); ++it) { llvm::ErrorOr name = elf->getSectionName(&*it); if (name) { if (name.get() == ".debug_frame") { @@ -600,7 +600,7 @@ DebugFrameInfo* ReadDebugFrameFromELFFile(const llvm::object::ELFFile* elf } std::vector program_headers; - for (auto it = elf->begin_program_headers(); it != elf->end_program_headers(); ++it) { + for (auto it = elf->program_header_begin(); it != elf->program_header_end(); ++it) { ProgramHeader header; header.vaddr = it->p_vaddr; header.file_offset = it->p_offset;