summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-objdump/COFFDump.cpp4
-rw-r--r--tools/macho-dump/macho-dump.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-objdump/COFFDump.cpp b/tools/llvm-objdump/COFFDump.cpp
index ba26ff00d9..5f0bcbbc92 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 7ae5440eec..0dfbd5fa09 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";