diff options
author | Rui Ueyama <ruiu@google.com> | 2013-09-27 21:47:05 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-09-27 21:47:05 +0000 |
commit | 29552222c2e7cbeb37fcd15d247597467f7b8544 (patch) | |
tree | f30d44b601349af6e19b627e9afe91975bf8d45e /tools | |
parent | bdd92883dd72dcd3bf1e636551124763ce9b7f31 (diff) | |
download | external_llvm-29552222c2e7cbeb37fcd15d247597467f7b8544.zip external_llvm-29552222c2e7cbeb37fcd15d247597467f7b8544.tar.gz external_llvm-29552222c2e7cbeb37fcd15d247597467f7b8544.tar.bz2 |
Object/COFF: Rename getXXX{Begin,End} -> xxx_{begin,end}.
It is mentioned in the LLVM coding standard that _begin() and _end() suffixes
should be used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-objdump/COFFDump.cpp | 4 | ||||
-rw-r--r-- | tools/macho-dump/macho-dump.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-objdump/COFFDump.cpp b/tools/llvm-objdump/COFFDump.cpp index ba26ff0..5f0bcbb 100644 --- a/tools/llvm-objdump/COFFDump.cpp +++ b/tools/llvm-objdump/COFFDump.cpp @@ -232,8 +232,8 @@ static void printCOFFSymbolAddress(llvm::raw_ostream &Out, static void printImportTables(const COFFObjectFile *Obj) { outs() << "The Import Tables:\n"; error_code ec; - for (import_directory_iterator i = Obj->getImportDirectoryBegin(), - e = Obj->getImportDirectoryEnd(); + for (import_directory_iterator i = Obj->import_directory_begin(), + e = Obj->import_directory_end(); i != e; i = i.increment(ec)) { if (ec) return; diff --git a/tools/macho-dump/macho-dump.cpp b/tools/macho-dump/macho-dump.cpp index 7ae5440..0dfbd5f 100644 --- a/tools/macho-dump/macho-dump.cpp +++ b/tools/macho-dump/macho-dump.cpp @@ -97,8 +97,8 @@ static int DumpSectionData(const MachOObjectFile &Obj, unsigned Index, outs() << " ('_relocations', [\n"; unsigned RelNum = 0; error_code EC; - for (relocation_iterator I = Obj.getSectionRelBegin(Index), - E = Obj.getSectionRelEnd(Index); I != E; I.increment(EC), ++RelNum) { + for (relocation_iterator I = Obj.section_rel_begin(Index), + E = Obj.section_rel_end(Index); I != E; I.increment(EC), ++RelNum) { MachO::any_relocation_info RE = Obj.getRelocation(I->getRawDataRefImpl()); outs() << " # Relocation " << RelNum << "\n"; outs() << " (('word-0', " << format("0x%x", RE.r_word0) << "),\n"; |