mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
[ObjCARC Debug Message] - Added debug message when fuse a retain/autorelease pair in ObjCARCContract::ContractAutorelease.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f93109a9b6
commit
916d52a03e
@ -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…
Reference in New Issue
Block a user