This mega patch converts us from using Function::a{iterator|begin|end} to
[oota-llvm.git] / lib / VMCore / Module.cpp
index 0c005494e15d8732e7a1765e02b7cdd5650e8160..f9b8ca1277f7ed8f5c15899a620cfd59bc426f5e 100644 (file)
@@ -286,7 +286,7 @@ void Module::dropAllReferences() {
   for(Module::iterator I = begin(), E = end(); I != E; ++I)
     I->dropAllReferences();
 
-  for(Module::giterator I = gbegin(), E = gend(); I != E; ++I)
+  for(Module::global_iterator I = global_begin(), E = global_end(); I != E; ++I)
     I->dropAllReferences();
 }