[llvm-commits] CVS: llvm/lib/Analysis/LiveVar/BBLiveVar.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 20 15:39:02 PDT 2003


Changes in directory llvm/lib/Analysis/LiveVar:

BBLiveVar.cpp updated: 1.36 -> 1.37

---
Log message:

Remove using declaration


---
Diffs of the changes:  (+11 -13)

Index: llvm/lib/Analysis/LiveVar/BBLiveVar.cpp
diff -u llvm/lib/Analysis/LiveVar/BBLiveVar.cpp:1.36 llvm/lib/Analysis/LiveVar/BBLiveVar.cpp:1.37
--- llvm/lib/Analysis/LiveVar/BBLiveVar.cpp:1.36	Mon Oct 20 14:43:14 2003
+++ llvm/lib/Analysis/LiveVar/BBLiveVar.cpp	Mon Oct 20 15:38:17 2003
@@ -21,8 +21,6 @@
 /// BROKEN: Should not include sparc stuff directly into here
 #include "../../Target/Sparc/SparcInternals.h"  //  Only for PHI defn
 
-using std::cerr;
-
 static AnnotationID AID(AnnotationManager::getID("Analysis::BBLiveVar"));
 
 BBLiveVar *BBLiveVar::CreateOnBB(const BasicBlock &BB, MachineBasicBlock &MBB,
@@ -63,9 +61,9 @@
     const MachineInstr *MI = *MII;
     
     if (DEBUG_LV >= LV_DEBUG_Verbose) {
-      cerr << " *Iterating over machine instr ";
+      std::cerr << " *Iterating over machine instr ";
       MI->dump();
-      cerr << "\n";
+      std::cerr << "\n";
     }
 
     // iterate over  MI operands to find defs
@@ -105,8 +103,8 @@
 	  PredToEdgeInSetMap[PredBB].insert(ArgVal); 
 	  
 	  if (DEBUG_LV >= LV_DEBUG_Verbose)
-	    cerr << "   - phi operand " << RAV(ArgVal) << " came from BB "
-                 << RAV(PredBB) << "\n";
+	    std::cerr << "   - phi operand " << RAV(ArgVal) << " came from BB "
+                      << RAV(PredBB) << "\n";
 	} // if( IsPhi )
         else {
           // It is not a Phi use: add to regular use set and remove later defs.
@@ -139,7 +137,7 @@
   InSet.erase(Op);       // this definition kills any later uses
   InSetChanged = true; 
 
-  if (DEBUG_LV >= LV_DEBUG_Verbose) cerr << "  +Def: " << RAV(Op) << "\n";
+  if (DEBUG_LV >= LV_DEBUG_Verbose) std::cerr << "  +Def: " << RAV(Op) << "\n";
 }
 
 
@@ -151,7 +149,7 @@
   DefSet.erase(Op);   // remove if there is a def below this use
   InSetChanged = true; 
 
-  if (DEBUG_LV >= LV_DEBUG_Verbose) cerr << "   Use: " << RAV(Op) << "\n";
+  if (DEBUG_LV >= LV_DEBUG_Verbose) std::cerr << "   Use: " << RAV(Op) << "\n";
 }
 
 
@@ -238,14 +236,14 @@
 // ----------------- Methods For Debugging (Printing) -----------------
 
 void BBLiveVar::printAllSets() const {
-  cerr << "  Defs: "; printSet(DefSet);  cerr << "\n";
-  cerr << "  In: ";  printSet(InSet);  cerr << "\n";
-  cerr << "  Out: "; printSet(OutSet);  cerr << "\n";
+  std::cerr << "  Defs: "; printSet(DefSet);  std::cerr << "\n";
+  std::cerr << "  In: ";  printSet(InSet);  std::cerr << "\n";
+  std::cerr << "  Out: "; printSet(OutSet);  std::cerr << "\n";
 }
 
 void BBLiveVar::printInOutSets() const {
-  cerr << "  In: ";   printSet(InSet);  cerr << "\n";
-  cerr << "  Out: ";  printSet(OutSet);  cerr << "\n";
+  std::cerr << "  In: ";   printSet(InSet);  std::cerr << "\n";
+  std::cerr << "  Out: ";  printSet(OutSet);  std::cerr << "\n";
 }
 
 





More information about the llvm-commits mailing list