mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92657 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c0a6a2afcb
commit
fc524526e4
@ -487,7 +487,7 @@ PointerType::PointerType(const Type *E, unsigned AddrSpace)
|
||||
OpaqueType::OpaqueType(LLVMContext &C) : DerivedType(C, OpaqueTyID) {
|
||||
setAbstract(true);
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << "Derived new type: " << *this << "\n");
|
||||
DEBUG(dbgs() << "Derived new type: " << *this << "\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -782,7 +782,7 @@ const IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) {
|
||||
pImpl->IntegerTypes.add(IVT, ITy);
|
||||
}
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << "Derived new type: " << *ITy << "\n");
|
||||
DEBUG(dbgs() << "Derived new type: " << *ITy << "\n");
|
||||
#endif
|
||||
return ITy;
|
||||
}
|
||||
@ -825,7 +825,7 @@ FunctionType *FunctionType::get(const Type *ReturnType,
|
||||
}
|
||||
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << "Derived new type: " << FT << "\n");
|
||||
DEBUG(dbgs() << "Derived new type: " << FT << "\n");
|
||||
#endif
|
||||
return FT;
|
||||
}
|
||||
@ -846,7 +846,7 @@ ArrayType *ArrayType::get(const Type *ElementType, uint64_t NumElements) {
|
||||
pImpl->ArrayTypes.add(AVT, AT = new ArrayType(ElementType, NumElements));
|
||||
}
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << "Derived new type: " << *AT << "\n");
|
||||
DEBUG(dbgs() << "Derived new type: " << *AT << "\n");
|
||||
#endif
|
||||
return AT;
|
||||
}
|
||||
@ -870,7 +870,7 @@ VectorType *VectorType::get(const Type *ElementType, unsigned NumElements) {
|
||||
pImpl->VectorTypes.add(PVT, PT = new VectorType(ElementType, NumElements));
|
||||
}
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << "Derived new type: " << *PT << "\n");
|
||||
DEBUG(dbgs() << "Derived new type: " << *PT << "\n");
|
||||
#endif
|
||||
return PT;
|
||||
}
|
||||
@ -902,7 +902,7 @@ StructType *StructType::get(LLVMContext &Context,
|
||||
pImpl->StructTypes.add(STV, ST);
|
||||
}
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << "Derived new type: " << *ST << "\n");
|
||||
DEBUG(dbgs() << "Derived new type: " << *ST << "\n");
|
||||
#endif
|
||||
return ST;
|
||||
}
|
||||
@ -946,7 +946,7 @@ PointerType *PointerType::get(const Type *ValueType, unsigned AddressSpace) {
|
||||
pImpl->PointerTypes.add(PVT, PT = new PointerType(ValueType, AddressSpace));
|
||||
}
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << "Derived new type: " << *PT << "\n");
|
||||
DEBUG(dbgs() << "Derived new type: " << *PT << "\n");
|
||||
#endif
|
||||
return PT;
|
||||
}
|
||||
@ -1009,13 +1009,13 @@ void Type::removeAbstractTypeUser(AbstractTypeUser *U) const {
|
||||
AbstractTypeUsers.erase(AbstractTypeUsers.begin()+i);
|
||||
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << " remAbstractTypeUser[" << (void*)this << ", "
|
||||
DEBUG(dbgs() << " remAbstractTypeUser[" << (void*)this << ", "
|
||||
<< *this << "][" << i << "] User = " << U << "\n");
|
||||
#endif
|
||||
|
||||
if (AbstractTypeUsers.empty() && getRefCount() == 0 && isAbstract()) {
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << "DELETEing unused abstract type: <" << *this
|
||||
DEBUG(dbgs() << "DELETEing unused abstract type: <" << *this
|
||||
<< ">[" << (void*)this << "]" << "\n");
|
||||
#endif
|
||||
|
||||
@ -1041,7 +1041,7 @@ void DerivedType::unlockedRefineAbstractTypeTo(const Type *NewType) {
|
||||
pImpl->AbstractTypeDescriptions.clear();
|
||||
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << "REFINING abstract type [" << (void*)this << " "
|
||||
DEBUG(dbgs() << "REFINING abstract type [" << (void*)this << " "
|
||||
<< *this << "] to [" << (void*)NewType << " "
|
||||
<< *NewType << "]!\n");
|
||||
#endif
|
||||
@ -1078,7 +1078,7 @@ void DerivedType::unlockedRefineAbstractTypeTo(const Type *NewType) {
|
||||
|
||||
unsigned OldSize = AbstractTypeUsers.size(); OldSize=OldSize;
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << " REFINING user " << OldSize-1 << "[" << (void*)User
|
||||
DEBUG(dbgs() << " REFINING user " << OldSize-1 << "[" << (void*)User
|
||||
<< "] of abstract type [" << (void*)this << " "
|
||||
<< *this << "] to [" << (void*)NewTy.get() << " "
|
||||
<< *NewTy << "]!\n");
|
||||
@ -1109,7 +1109,7 @@ void DerivedType::refineAbstractTypeTo(const Type *NewType) {
|
||||
//
|
||||
void DerivedType::notifyUsesThatTypeBecameConcrete() {
|
||||
#ifdef DEBUG_MERGE_TYPES
|
||||
DEBUG(errs() << "typeIsREFINED type: " << (void*)this << " " << *this <<"\n");
|
||||
DEBUG(dbgs() << "typeIsREFINED type: " << (void*)this << " " << *this <<"\n");
|
||||
#endif
|
||||
|
||||
unsigned OldSize = AbstractTypeUsers.size(); OldSize=OldSize;
|
||||
|
Loading…
Reference in New Issue
Block a user