mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-02 01:39:13 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92627 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c2e0974afb
commit
09d70db3ed
@ -93,7 +93,7 @@ CallGraphNode *SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
|
||||
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 @@ CallGraphNode *SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
|
||||
|
||||
// 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",
|
||||
|
Loading…
Reference in New Issue
Block a user