This mega patch converts us from using Function::a{iterator|begin|end} to
[oota-llvm.git] / lib / Transforms / IPO / StripSymbols.cpp
index 03ea55b41487f6fc4bdff45174a36fd0aca787e9..80fe394f61502955f2a08e2fd71adf0ef6995dc9 100644 (file)
@@ -75,7 +75,7 @@ bool StripSymbols::runOnModule(Module &M) {
   // If we're not just stripping debug info, strip all symbols from the
   // functions and the names from any internal globals.
   if (!OnlyDebugInfo) {
-    for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
+    for (Module::global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
       if (I->hasInternalLinkage())
         I->setName("");     // Internal symbols can't participate in linkage