Skip to content

Commit

Permalink
Replace two calls to object::symbol_iterator::increment(), which had
Browse files Browse the repository at this point in the history
been removed in r200442.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206196 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Kaelyn Takata committed Apr 14, 2014
1 parent 1d9c093 commit 03e1857
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,8 @@ void OProfileJITEventListener::NotifyObjectEmitted(const ObjectImage &Obj) {
}

// Use symbol info to iterate functions in the object.
error_code ec;
for (object::symbol_iterator I = Obj.begin_symbols(),
E = Obj.end_symbols();
I != E && !ec;
I.increment(ec)) {
for (object::symbol_iterator I = Obj.begin_symbols(), E = Obj.end_symbols();
I != E; ++I) {
object::SymbolRef::Type SymType;
if (I->getType(SymType)) continue;
if (SymType == object::SymbolRef::ST_Function) {
Expand Down Expand Up @@ -203,11 +200,8 @@ void OProfileJITEventListener::NotifyFreeingObject(const ObjectImage &Obj) {
}

// Use symbol info to iterate functions in the object.
error_code ec;
for (object::symbol_iterator I = Obj.begin_symbols(),
E = Obj.end_symbols();
I != E && !ec;
I.increment(ec)) {
for (object::symbol_iterator I = Obj.begin_symbols(), E = Obj.end_symbols();
I != E; ++I) {
object::SymbolRef::Type SymType;
if (I->getType(SymType)) continue;
if (SymType == object::SymbolRef::ST_Function) {
Expand Down

0 comments on commit 03e1857

Please sign in to comment.