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 | a40b3522c82f5684a8a2c59a631b8c445288f6e1 (patch) | |
tree | 86bbfc7434be05fc970615da9f80a810b100c9d8 /lib/DebugInfo | |
parent | 700bba297ba8a99c5dfd31ceaa894fbd1496a03e (diff) | |
download | llvm-a40b3522c82f5684a8a2c59a631b8c445288f6e1.tar.gz llvm-a40b3522c82f5684a8a2c59a631b8c445288f6e1.tar.bz2 llvm-a40b3522c82f5684a8a2c59a631b8c445288f6e1.tar.xz |
Change the begin and end methods in ObjectFile to match the style guide.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARFContext.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp index daf7cdd98c..b5b75b0408 100644 --- a/lib/DebugInfo/DWARFContext.cpp +++ b/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); |