[llvm-commits] CVS: llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Mar 4 12:32:17 PST 2005
Changes in directory llvm-poolalloc/lib/PoolAllocate:
PointerCompress.cpp updated: 1.42 -> 1.43
---
Log message:
Print debug output that shows how much we are helping.
---
Diffs of the changes: (+3 -0)
PointerCompress.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.42 llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.43
--- llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.42 Fri Mar 4 14:19:05 2005
+++ llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp Fri Mar 4 14:32:01 2005
@@ -278,6 +278,9 @@
/// dump - Emit a debugging dump for this pool info.
///
void CompressedPoolInfo::dump() const {
+ const TargetData &TD = getNode()->getParentGraph()->getTargetData();
+ std::cerr << " From size: " << TD.getTypeSize(getNode()->getType())
+ << " To size: " << TD.getTypeSize(NewTy) << "\n";
std::cerr << "Node: "; getNode()->dump();
std::cerr << "New Type: " << *NewTy << "\n";
}
More information about the llvm-commits
mailing list