mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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:
@@ -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;
|
||||
|
@@ -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";
|
||||
|
Reference in New Issue
Block a user