mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[ObjCARC Debug Message] - Added debug message when fuse a retain/autorelease pair in ObjCARCContract::ContractAutorelease.
llvm-svn: 171679
This commit is contained in:
parent
4a96ee6b2a
commit
4a300ff5a0
@ -4027,12 +4027,20 @@ ObjCARCContract::ContractAutorelease(Function &F, Instruction *Autorelease,
|
||||
|
||||
Changed = true;
|
||||
++NumPeeps;
|
||||
|
||||
|
||||
DEBUG(dbgs() << "ObjCARCContract::ContractAutorelease: Fusing "
|
||||
"retain/autorelease. Erasing: " << *Autorelease << "\n"
|
||||
" Old Retain: "
|
||||
<< *Retain << "\n");
|
||||
|
||||
if (Class == IC_AutoreleaseRV)
|
||||
Retain->setCalledFunction(getRetainAutoreleaseRVCallee(F.getParent()));
|
||||
else
|
||||
Retain->setCalledFunction(getRetainAutoreleaseCallee(F.getParent()));
|
||||
|
||||
|
||||
DEBUG(dbgs() << " New Retain: "
|
||||
<< *Retain << "\n");
|
||||
|
||||
EraseInstruction(Autorelease);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user