summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-30 23:32:50 +0000
committerChris Lattner <sabre@nondot.org>2006-09-30 23:32:50 +0000
commit4797c891c02a6b166cee63d7f862d777cba665c6 (patch)
tree199cb8537798c69d6a9b562326b2d2413a72322c /llvm/lib/Transforms
parent24d3d4280a8ee823f769b9c7d2a980b9633b97a2 (diff)
downloadbcm5719-llvm-4797c891c02a6b166cee63d7f862d777cba665c6.tar.gz
bcm5719-llvm-4797c891c02a6b166cee63d7f862d777cba665c6.zip
Fix debug output
llvm-svn: 30680
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/GlobalOpt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
index f705d2d50c5..5abd290527f 100644
--- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp
+++ b/llvm/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<StructType>(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) {
OpenPOWER on IntegriCloud