mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
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
This commit is contained in:
parent
95a80adc23
commit
3c87b29985
@ -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...
|
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: "
|
DEBUG(std::cerr << "UNIMP: Trying to merge a growth type into "
|
||||||
<< "Collapsing!\n";
|
<< "offset != 0: Collapsing!\n");
|
||||||
foldNodeCompletely();
|
foldNodeCompletely();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -280,10 +280,9 @@ bool DSNode::mergeTypeInfo(const Type *NewTy, unsigned Offset) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DEBUG(std::cerr << "MergeTypeInfo Folding OrigTy: " << Ty.Ty
|
||||||
std::cerr << "MergeTypeInfo Folding OrigTy: " << Ty.Ty
|
<< "\n due to:" << NewTy << " @ " << Offset << "!\n"
|
||||||
<< "\n due to:" << NewTy << " @ " << Offset << "!\n";
|
<< "SubType: " << SubType << "\n\n");
|
||||||
std::cerr << "SubType: " << SubType << "\n\n";
|
|
||||||
|
|
||||||
foldNodeCompletely();
|
foldNodeCompletely();
|
||||||
return true;
|
return true;
|
||||||
@ -366,7 +365,8 @@ void DSNode::mergeWith(const DSNodeHandle &NH, unsigned Offset) {
|
|||||||
if (N == this) {
|
if (N == this) {
|
||||||
// We cannot merge two pieces of the same node together, collapse the node
|
// We cannot merge two pieces of the same node together, collapse the node
|
||||||
// completely.
|
// 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();
|
foldNodeCompletely();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user