aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/DataStructure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-07 01:54:56 +0000
committerChris Lattner <sabre@nondot.org>2002-11-07 01:54:56 +0000
commit3c87b29985c1d1f75bf4298154c664c56f085907 (patch)
tree13f2e10ccf372c42660d3013c99a399d085d7ba5 /lib/Analysis/DataStructure/DataStructure.cpp
parent95a80adc23ebeb22188953fd433c74f9b7e88217 (diff)
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
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r--lib/Analysis/DataStructure/DataStructure.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp
index 740ece86f5..cb56db1f9f 100644
--- a/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/lib/Analysis/DataStructure/DataStructure.cpp
@@ -163,8 +163,8 @@ bool DSNode::mergeTypeInfo(const Type *NewTy, unsigned Offset) {
}
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 @@ bool DSNode::mergeTypeInfo(const Type *NewTy, unsigned Offset) {
}
-
- 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 @@ void DSNode::mergeWith(const DSNodeHandle &NH, unsigned Offset) {
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;
}