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

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 6 19:56:01 PST 2002


Changes in directory llvm/lib/Analysis/DataStructure:

DataStructure.cpp updated: 1.44 -> 1.45

---
Log message:

Move printouts to be wrapped in DEBUG() macros


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.44 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.45
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.44	Wed Nov  6 12:01:39 2002
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp	Wed Nov  6 19:54:56 2002
@@ -163,8 +163,8 @@
     }
 
     if (Offset) {  // We could handle this case, but we don't for now...
-      std::cerr << "UNIMP: Trying to merge a growth type into offset != 0: "
-                << "Collapsing!\n";
+      DEBUG(std::cerr << "UNIMP: Trying to merge a growth type into "
+                      << "offset != 0: Collapsing!\n");
       foldNodeCompletely();
       return true;
     }
@@ -280,10 +280,9 @@
   }
 
 
-
-  std::cerr << "MergeTypeInfo Folding OrigTy: " << Ty.Ty
-            << "\n due to:" << NewTy << " @ " << Offset << "!\n";
-  std::cerr << "SubType: " << SubType << "\n\n";
+  DEBUG(std::cerr << "MergeTypeInfo Folding OrigTy: " << Ty.Ty
+                  << "\n due to:" << NewTy << " @ " << Offset << "!\n"
+                  << "SubType: " << SubType << "\n\n");
 
   foldNodeCompletely();
   return true;
@@ -366,7 +365,8 @@
   if (N == this) {
     // We cannot merge two pieces of the same node together, collapse the node
     // completely.
-    std::cerr << "Attempting to merge two chunks of the same node together!\n";
+    DEBUG(std::cerr << "Attempting to merge two chunks of"
+                    << " the same node together!\n");
     foldNodeCompletely();
     return;
   }





More information about the llvm-commits mailing list