mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Change errs() to dbgs().
llvm-svn: 92627
This commit is contained in:
parent
771bfcd4c5
commit
e5c3a6f658
@ -93,7 +93,7 @@ CallGraphNode *SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
|
|||||||
if (F->arg_size() == 0 || !F->hasStructRetAttr() || F->doesNotReturn())
|
if (F->arg_size() == 0 || !F->hasStructRetAttr() || F->doesNotReturn())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
DEBUG(errs() << "SretPromotion: Looking at sret function "
|
DEBUG(dbgs() << "SretPromotion: Looking at sret function "
|
||||||
<< F->getName() << "\n");
|
<< F->getName() << "\n");
|
||||||
|
|
||||||
assert(F->getReturnType() == Type::getVoidTy(F->getContext()) &&
|
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.
|
// Check if it is ok to perform this promotion.
|
||||||
if (isSafeToUpdateAllCallers(F) == false) {
|
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++;
|
NumRejectedSRETUses++;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(errs() << "SretPromotion: sret argument will be promoted\n");
|
DEBUG(dbgs() << "SretPromotion: sret argument will be promoted\n");
|
||||||
NumSRET++;
|
NumSRET++;
|
||||||
// [1] Replace use of sret parameter
|
// [1] Replace use of sret parameter
|
||||||
AllocaInst *TheAlloca = new AllocaInst(STy, NULL, "mrv",
|
AllocaInst *TheAlloca = new AllocaInst(STy, NULL, "mrv",
|
||||||
|
Loading…
Reference in New Issue
Block a user