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
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);
return PT;
}
+void debug_type_tables() {
+ FunctionTypes.dump();
+ ArrayTypes.dump();
+ StructTypes.dump();
+ PointerTypes.dump();
+}
//===----------------------------------------------------------------------===//