[llvm-commits] CVS: llvm/lib/Transforms/IPO/FunctionResolution.cpp

Bill Wendling isanbard at gmail.com
Thu Dec 7 12:05:09 PST 2006



Changes in directory llvm/lib/Transforms/IPO:

FunctionResolution.cpp updated: 1.61 -> 1.62
---
Log message:

Removing even more <iostream> includes.


---
Diffs of the changes:  (+19 -19)

 FunctionResolution.cpp |   38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)


Index: llvm/lib/Transforms/IPO/FunctionResolution.cpp
diff -u llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.61 llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.62
--- llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.61	Wed Dec  6 11:46:32 2006
+++ llvm/lib/Transforms/IPO/FunctionResolution.cpp	Thu Dec  7 14:04:42 2006
@@ -62,13 +62,13 @@
       if (OldFT->getNumParams() > ConcreteFT->getNumParams() &&
           !ConcreteFT->isVarArg())
         if (!Old->use_empty()) {
-          std::cerr << "WARNING: Linking function '" << Old->getName()
-                    << "' is causing arguments to be dropped.\n";
-          std::cerr << "WARNING: Prototype: ";
+          cerr << "WARNING: Linking function '" << Old->getName()
+               << "' is causing arguments to be dropped.\n";
+          cerr << "WARNING: Prototype: ";
           WriteAsOperand(std::cerr, Old);
-          std::cerr << " resolved to ";
+          cerr << " resolved to ";
           WriteAsOperand(std::cerr, Concrete);
-          std::cerr << "\n";
+          cerr << "\n";
         }
 
       // Check to make sure that if there are specified types, that they
@@ -82,14 +82,14 @@
           if (OldFT->getParamType(i) != ConcreteFT->getParamType(i))
             if (OldFT->getParamType(i)->getTypeID() !=
                 ConcreteFT->getParamType(i)->getTypeID()) {
-              std::cerr << "WARNING: Function [" << Old->getName()
-                        << "]: Parameter types conflict for: '";
+              cerr << "WARNING: Function [" << Old->getName()
+                   << "]: Parameter types conflict for: '";
               WriteTypeSymbolic(std::cerr, OldFT, &M);
-              std::cerr << "' (in " 
-                << Old->getParent()->getModuleIdentifier() << ") and '";
+              cerr << "' (in " 
+                   << Old->getParent()->getModuleIdentifier() << ") and '";
               WriteTypeSymbolic(std::cerr, ConcreteFT, &M);
-              std::cerr << "'(in " 
-                << Concrete->getParent()->getModuleIdentifier() << ")\n";
+              cerr << "'(in " 
+                   << Concrete->getParent()->getModuleIdentifier() << ")\n";
               return Changed;
             }
 
@@ -164,8 +164,8 @@
 
   for (unsigned i = 0; i != Globals.size(); ) {
     if (isa<Function>(Globals[i]) != isFunction) {
-      std::cerr << "WARNING: Found function and global variable with the "
-                << "same name: '" << Globals[i]->getName() << "'.\n";
+      cerr << "WARNING: Found function and global variable with the "
+           << "same name: '" << Globals[i]->getName() << "'.\n";
       return false;                 // Don't know how to handle this, bail out!
     }
 
@@ -192,9 +192,9 @@
       GlobalVariable *GV = cast<GlobalVariable>(Globals[i]);
       if (!GV->isExternal()) {
         if (Concrete) {
-          std::cerr << "WARNING: Two global variables with external linkage"
-                    << " exist with the same name: '" << GV->getName()
-                    << "'!\n";
+          cerr << "WARNING: Two global variables with external linkage"
+               << " exist with the same name: '" << GV->getName()
+               << "'!\n";
           return false;
         }
         Concrete = GV;
@@ -251,11 +251,11 @@
     }
 
     if (0 && !DontPrintWarning) {
-      std::cerr << "WARNING: Found global types that are not compatible:\n";
+      cerr << "WARNING: Found global types that are not compatible:\n";
       for (unsigned i = 0; i < Globals.size(); ++i) {
-        std::cerr << "\t";
+        cerr << "\t";
         WriteTypeSymbolic(std::cerr, Globals[i]->getType(), &M);
-        std::cerr << " %" << Globals[i]->getName() << "\n";
+        cerr << " %" << Globals[i]->getName() << "\n";
       }
     }
 






More information about the llvm-commits mailing list