summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-07 18:15:25 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-07 18:15:25 +0000
commitb0d61540cbf72a6a32d456179fbcf5c66b85043f (patch)
treef0c69c141e3a07bb3078cba0901b6734e860987b /llvm/tools/llvm-objdump/llvm-objdump.cpp
parentde4b919d27137ec15923fcefb3975564158a3065 (diff)
downloadbcm5719-llvm-b0d61540cbf72a6a32d456179fbcf5c66b85043f.tar.gz
bcm5719-llvm-b0d61540cbf72a6a32d456179fbcf5c66b85043f.zip
Change relocation API to be per section.
llvm-svn: 141376
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r--llvm/tools/llvm-objdump/llvm-objdump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp
index 78824e9e067..bb4a77bc796 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud