Make 64bit args and float args work correct with calls. Thanks to Chris
[oota-llvm.git] / lib / Target / SparcV8 / SparcV8AsmPrinter.cpp
index 432aa2c59498c2bafc74e1b0387f8e3087b64510..71210536e79a0c5c57eaca4706dd53eccf477639 100644 (file)
@@ -580,7 +580,7 @@ bool V8Printer::doFinalization(Module &M) {
   std::string CurSection;
 
   // Print out module-level global variables here.
-  for (Module::const_giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
+  for (Module::const_global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
     if (I->hasInitializer()) {   // External global require no code
       O << "\n\n";
       std::string name = Mang->getValueName(I);