summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/OProfileJIT
diff options
context:
space:
mode:
authorKaelyn Takata <rikka@google.com>2014-04-14 17:26:50 +0000
committerKaelyn Takata <rikka@google.com>2014-04-14 17:26:50 +0000
commit226794ad973dd1a6a7fcb16538366b5f95eb1743 (patch)
tree34c8fc4c8dd42db36cae2d621ba45444614f6fc5 /llvm/lib/ExecutionEngine/OProfileJIT
parent55a3cffabeaa9bd375b2a2ca0cf286854fbd3aed (diff)
downloadbcm5719-llvm-226794ad973dd1a6a7fcb16538366b5f95eb1743.tar.gz
bcm5719-llvm-226794ad973dd1a6a7fcb16538366b5f95eb1743.zip
Replace two calls to object::symbol_iterator::increment(), which had
been removed in r200442. llvm-svn: 206196
Diffstat (limited to 'llvm/lib/ExecutionEngine/OProfileJIT')
-rw-r--r--llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp
index 87cef2e076c..834251f4094 100644
--- a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp
+++ b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp
@@ -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) {
@@ -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) {
OpenPOWER on IntegriCloud