mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 05:31:06 +00:00
Clean up debugging code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f59b7e933
commit
cecb520d1c
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user