From: Chris Lattner Date: Sat, 30 Sep 2006 23:32:50 +0000 (+0000) Subject: Fix debug output X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=596721f0d7e59e5092ff89b2dd3ba4abeffc43e5;p=oota-llvm.git Fix debug output git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30680 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index f705d2d50c5..5abd290527f 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp @@ -913,7 +913,7 @@ static void RewriteUsesOfLoadForHeapSRoA(LoadInst *Ptr, /// PerformHeapAllocSRoA - MI is an allocation of an array of structures. Break /// it up into multiple allocations of arrays of the fields. 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(MI->getAllocatedType()); // 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. /// Return true if anything changed. bool GlobalOpt::OptimizeGlobalCtorsList(GlobalVariable *&GCL) {