Move printouts to be wrapped in DEBUG() macros


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4588 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp
index 740ece8..cb56db1 100644
--- a/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/lib/Analysis/DataStructure/DataStructure.cpp
@@ -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;
   }