Update BacktraceOffline for LLVM rebase to r256229.

Bug: http://b/26987366
Change-Id: I3c5f3349a669c04bb40dd7175f840b57dc46f7f6
This commit is contained in:
Stephen Hines 2016-03-08 01:23:43 -08:00
parent ad5dc479cd
commit 19c30e9516

View file

@ -561,7 +561,7 @@ DebugFrameInfo* ReadDebugFrameFromELFFile(const llvm::object::ELFFile<ELFT>* elf
uint64_t eh_frame_vaddr = 0;
std::vector<uint8_t> 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<llvm::StringRef> name = elf->getSectionName(&*it);
if (name) {
if (name.get() == ".debug_frame") {
@ -600,7 +600,7 @@ DebugFrameInfo* ReadDebugFrameFromELFFile(const llvm::object::ELFFile<ELFT>* elf
}
std::vector<ProgramHeader> 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;