diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-10 20:24:04 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-10 20:24:04 +0000 |
| commit | b5155a572fd972d249ea365226c10a5d8e5f921d (patch) | |
| tree | 6624d2d20449860aaf72df9fce146a7f18e4806b /llvm/lib/DebugInfo | |
| parent | 0cdcd961bf0cc747a1d93617d24bbcabacb818b0 (diff) | |
| download | bcm5719-llvm-b5155a572fd972d249ea365226c10a5d8e5f921d.tar.gz bcm5719-llvm-b5155a572fd972d249ea365226c10a5d8e5f921d.zip | |
Change the begin and end methods in ObjectFile to match the style guide.
llvm-svn: 201108
Diffstat (limited to 'llvm/lib/DebugInfo')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARFContext.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp index daf7cdd98c6..b5b75b0408e 100644 --- a/llvm/lib/DebugInfo/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARFContext.cpp @@ -603,8 +603,8 @@ static bool consumeCompressedDebugSectionHeader(StringRef &data, DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile *Obj) : IsLittleEndian(Obj->isLittleEndian()), AddressSize(Obj->getBytesInAddress()) { - for (object::section_iterator i = Obj->begin_sections(), - e = Obj->end_sections(); + for (object::section_iterator i = Obj->section_begin(), + e = Obj->section_end(); i != e; ++i) { StringRef name; i->getName(name); @@ -665,7 +665,7 @@ DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile *Obj) : } section_iterator RelocatedSection = i->getRelocatedSection(); - if (RelocatedSection == Obj->end_sections()) + if (RelocatedSection == Obj->section_end()) continue; StringRef RelSecName; @@ -692,11 +692,11 @@ DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile *Obj) : continue; } - if (i->begin_relocations() != i->end_relocations()) { + if (i->relocation_begin() != i->relocation_end()) { uint64_t SectionSize; RelocatedSection->getSize(SectionSize); - for (object::relocation_iterator reloc_i = i->begin_relocations(), - reloc_e = i->end_relocations(); + for (object::relocation_iterator reloc_i = i->relocation_begin(), + reloc_e = i->relocation_end(); reloc_i != reloc_e; ++reloc_i) { uint64_t Address; reloc_i->getOffset(Address); |

