From 19c30e95167e4879c79007d42ea9c32c4eaa8979 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Tue, 8 Mar 2016 01:23:43 -0800 Subject: [PATCH] Update BacktraceOffline for LLVM rebase to r256229. Bug: http://b/26987366 Change-Id: I3c5f3349a669c04bb40dd7175f840b57dc46f7f6 --- libbacktrace/BacktraceOffline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;