aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-objdump
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-07 19:25:32 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-07 19:25:32 +0000
commit4344b1ef9b3721a5ebc2e024f753772a1e4ddd92 (patch)
tree4e940dd99f2b1745799c9f1544fc1a88b3e5594f /tools/llvm-objdump
parent186ffac4d35c9ea669b03ac75f5e21bff1f01a7f (diff)
downloadexternal_llvm-4344b1ef9b3721a5ebc2e024f753772a1e4ddd92.zip
external_llvm-4344b1ef9b3721a5ebc2e024f753772a1e4ddd92.tar.gz
external_llvm-4344b1ef9b3721a5ebc2e024f753772a1e4ddd92.tar.bz2
Change relocation API to be per section. This time without breaking GCC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-objdump')
-rw-r--r--tools/llvm-objdump/llvm-objdump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp
index 78824e9..bb4a77b 100644
--- a/tools/llvm-objdump/llvm-objdump.cpp
+++ b/tools/llvm-objdump/llvm-objdump.cpp
@@ -155,7 +155,7 @@ void llvm::DisassembleInputLibObject(StringRef Filename) {
<< ":\tfile format " << Obj->getFileFormatName() << "\n\n";
error_code ec;
- for (ObjectFile::section_iterator i = Obj->begin_sections(),
+ for (section_iterator i = Obj->begin_sections(),
e = Obj->end_sections();
i != e; i.increment(ec)) {
if (error(ec)) break;
@@ -165,7 +165,7 @@ void llvm::DisassembleInputLibObject(StringRef Filename) {
// Make a list of all the symbols in this section.
std::vector<std::pair<uint64_t, StringRef> > Symbols;
- for (ObjectFile::symbol_iterator si = Obj->begin_symbols(),
+ for (symbol_iterator si = Obj->begin_symbols(),
se = Obj->end_symbols();
si != se; si.increment(ec)) {
bool contains;