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
This commit is contained in:
Rui Ueyama
2013-09-27 21:47:05 +00:00
parent bdd92883dd
commit 29552222c2
8 changed files with 30 additions and 30 deletions

View File

@@ -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;

View File

@@ -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";