[ObjCARC Debug Message] - Added debug message when we zap a matching retain/autorelease pair in ObjCARCOpt::OptimizeReturns.

llvm-svn: 171678
This commit is contained in:
Michael Gottesman 2013-01-07 00:04:56 +00:00
parent 5b970e14e6
commit d61a3b2707
1 changed files with 3 additions and 0 deletions

View File

@ -3753,6 +3753,9 @@ void ObjCARCOpt::OptimizeReturns(Function &F) {
// If so, we can zap the retain and autorelease.
Changed = true;
++NumRets;
DEBUG(dbgs() << "ObjCARCOpt::OptimizeReturns: Erasing: " << *Retain
<< "\n Erasing: "
<< *Autorelease << "\n");
EraseInstruction(Retain);
EraseInstruction(Autorelease);
}