[llvm-commits] [llvm] r92627 - /llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp
David Greene
greened at obbligato.org
Mon Jan 4 17:27:54 PST 2010
Author: greened
Date: Mon Jan 4 19:27:54 2010
New Revision: 92627
URL: http://llvm.org/viewvc/llvm-project?rev=92627&view=rev
Log:
Change errs() to dbgs().
Modified:
llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp
Modified: llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp?rev=92627&r1=92626&r2=92627&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp Mon Jan 4 19:27:54 2010
@@ -93,7 +93,7 @@
if (F->arg_size() == 0 || !F->hasStructRetAttr() || F->doesNotReturn())
return 0;
- DEBUG(errs() << "SretPromotion: Looking at sret function "
+ DEBUG(dbgs() << "SretPromotion: Looking at sret function "
<< F->getName() << "\n");
assert(F->getReturnType() == Type::getVoidTy(F->getContext()) &&
@@ -107,12 +107,12 @@
// Check if it is ok to perform this promotion.
if (isSafeToUpdateAllCallers(F) == false) {
- DEBUG(errs() << "SretPromotion: Not all callers can be updated\n");
+ DEBUG(dbgs() << "SretPromotion: Not all callers can be updated\n");
NumRejectedSRETUses++;
return 0;
}
- DEBUG(errs() << "SretPromotion: sret argument will be promoted\n");
+ DEBUG(dbgs() << "SretPromotion: sret argument will be promoted\n");
NumSRET++;
// [1] Replace use of sret parameter
AllocaInst *TheAlloca = new AllocaInst(STy, NULL, "mrv",
More information about the llvm-commits
mailing list