Fix debug output

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-09-30 23:32:50 +00:00
parent 8639503abe
commit 596721f0d7

View File

@ -913,7 +913,7 @@ static void RewriteUsesOfLoadForHeapSRoA(LoadInst *Ptr,
/// PerformHeapAllocSRoA - MI is an allocation of an array of structures. Break /// PerformHeapAllocSRoA - MI is an allocation of an array of structures. Break
/// it up into multiple allocations of arrays of the fields. /// it up into multiple allocations of arrays of the fields.
static GlobalVariable *PerformHeapAllocSRoA(GlobalVariable *GV, MallocInst *MI){ static GlobalVariable *PerformHeapAllocSRoA(GlobalVariable *GV, MallocInst *MI){
/*DEBUG*/(std::cerr << "SROA HEAP ALLOC: " << *GV << " MALLOC = " << *MI); DEBUG(std::cerr << "SROA HEAP ALLOC: " << *GV << " MALLOC = " << *MI);
const StructType *STy = cast<StructType>(MI->getAllocatedType()); const StructType *STy = cast<StructType>(MI->getAllocatedType());
// There is guaranteed to be at least one use of the malloc (storing // There is guaranteed to be at least one use of the malloc (storing
@ -1872,7 +1872,6 @@ static bool EvaluateStaticConstructor(Function *F) {
/// OptimizeGlobalCtorsList - Simplify and evaluation global ctors if possible. /// OptimizeGlobalCtorsList - Simplify and evaluation global ctors if possible.
/// Return true if anything changed. /// Return true if anything changed.
bool GlobalOpt::OptimizeGlobalCtorsList(GlobalVariable *&GCL) { bool GlobalOpt::OptimizeGlobalCtorsList(GlobalVariable *&GCL) {