diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-05 19:53:06 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-05 19:53:06 +0000 |
| commit | 8d50d4600e27f55d8b39a4db7e7a5f5f07765988 (patch) | |
| tree | 4c38469061cb80344080bc002cd24a9efeadd09b /llvm/lib/VMCore | |
| parent | 26b7ba59b8b7ff4db3cd501b7551b4aca422c60d (diff) | |
| download | bcm5719-llvm-8d50d4600e27f55d8b39a4db7e7a5f5f07765988.tar.gz bcm5719-llvm-8d50d4600e27f55d8b39a4db7e7a5f5f07765988.zip | |
Clean up debugging code
llvm-svn: 2119
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/Type.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 647bad09f7a..c252185825d 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/lib/VMCore/Type.cpp @@ -861,10 +861,9 @@ void DerivedType::refineAbstractTypeTo(const Type *NewType) { #endif User->refineAbstractType(this, NewTy); - if (AbstractTypeUsers.size() == OldSize) - User->refineAbstractType(this, NewTy); - +#ifdef DEBUG_MERGE_TYPES if (AbstractTypeUsers.size() == OldSize) { + User->refineAbstractType(this, NewTy); if (AbstractTypeUsers.back() != User) cerr << "User changed!\n"; cerr << "Top of user list is:\n"; @@ -873,7 +872,7 @@ void DerivedType::refineAbstractTypeTo(const Type *NewType) { cerr <<"\nOld User=\n"; User->dump(); } - +#endif assert(AbstractTypeUsers.size() != OldSize && "AbsTyUser did not remove self from user list!"); } @@ -922,6 +921,7 @@ void DerivedType::typeIsRefined() { if (AbstractTypeUsers[i] != this) { // Debugging hook cerr << "FOUND FAILURE\n"; + AbstractTypeUsers[i]->dump(); AbstractTypeUsers[i]->refineAbstractType(this, this); assert(0 && "Type became concrete," " but it still has abstract type users hanging around!"); |

