diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-06 00:21:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-06 00:21:11 +0000 |
commit | 054ec0ec05c150fc1fe8973afef15417b5449c1c (patch) | |
tree | 7c76836cf6d2e281a79c34e761d8a4305bbaa538 | |
parent | 70aa1c615cf0c14716eb3cd0cd7bde9626fd5f62 (diff) | |
download | bcm5719-llvm-054ec0ec05c150fc1fe8973afef15417b5449c1c.tar.gz bcm5719-llvm-054ec0ec05c150fc1fe8973afef15417b5449c1c.zip |
* Reenable apparently neccesary code, that breaks testcases when enabled,
but causes MANY FUNDAMENTAL PROBLEMS when not enabled. :(
* Add debugging function
llvm-svn: 2125
-rw-r--r-- | llvm/lib/VMCore/Type.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 1af616f8663..fc90095bb42 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/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(); +} //===----------------------------------------------------------------------===// |