mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
[ObjCARC Debug Message] - Added debug message when we zap a matching retain/autorelease pair in ObjCARCOpt::OptimizeReturns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171678 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fbe4d6b1fa
commit
f93109a9b6
@ -3753,6 +3753,9 @@ void ObjCARCOpt::OptimizeReturns(Function &F) {
|
|||||||
// If so, we can zap the retain and autorelease.
|
// If so, we can zap the retain and autorelease.
|
||||||
Changed = true;
|
Changed = true;
|
||||||
++NumRets;
|
++NumRets;
|
||||||
|
DEBUG(dbgs() << "ObjCARCOpt::OptimizeReturns: Erasing: " << *Retain
|
||||||
|
<< "\n Erasing: "
|
||||||
|
<< *Autorelease << "\n");
|
||||||
EraseInstruction(Retain);
|
EraseInstruction(Retain);
|
||||||
EraseInstruction(Autorelease);
|
EraseInstruction(Autorelease);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user