aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-06 00:21:11 +0000
committerChris Lattner <sabre@nondot.org>2002-04-06 00:21:11 +0000
commit339ba45f1002e3175b3aed2536d32b5865a9042f (patch)
tree3d02174d36417128c4112502feed0fa06a6f4030 /lib
parentaf93dbcc95accfc9583aa59d19515adc5acacde7 (diff)
* Reenable apparently neccesary code, that breaks testcases when enabled,
but causes MANY FUNDAMENTAL PROBLEMS when not enabled. :( * Add debugging function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Type.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 1af616f866..fc90095bb4 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -521,7 +521,7 @@ protected:
ValType Tmp(*(ValType*)this); // Copy this.
PATypeHandle<TypeClass> OldType(Table.get(*(ValType*)this), this);
Table.remove(*(ValType*)this); // Destroy's this!
-#if 0
+#if 1
// Refine temporary to new state...
Tmp.doRefinement(OldTy, NewTy);
@@ -771,6 +771,12 @@ PointerType *PointerType::get(const Type *ValueType) {
return PT;
}
+void debug_type_tables() {
+ FunctionTypes.dump();
+ ArrayTypes.dump();
+ StructTypes.dump();
+ PointerTypes.dump();
+}
//===----------------------------------------------------------------------===//