diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-01-04 21:30:38 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-01-04 21:30:38 +0000 |
commit | 715f6a62a17f1e26a7c3f673b70bf44c99ae7cae (patch) | |
tree | c2892be8740cfa2f36cab64f41ad6854a10fd420 /lib/Transforms | |
parent | 5c0ae4727fe49a8173ee9084af4f5fb7d6d33f2c (diff) | |
download | external_llvm-715f6a62a17f1e26a7c3f673b70bf44c99ae7cae.zip external_llvm-715f6a62a17f1e26a7c3f673b70bf44c99ae7cae.tar.gz external_llvm-715f6a62a17f1e26a7c3f673b70bf44c99ae7cae.tar.bz2 |
Added DEBUG message to ObjCARC when we optimize objc_retain => objc_retainAutorelasedReturnValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171535 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/ObjCARC.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/ObjCARC.cpp b/lib/Transforms/Scalar/ObjCARC.cpp index c280cf4..1e9b08e 100644 --- a/lib/Transforms/Scalar/ObjCARC.cpp +++ b/lib/Transforms/Scalar/ObjCARC.cpp @@ -2199,7 +2199,17 @@ ObjCARCOpt::OptimizeRetainCall(Function &F, Instruction *Retain) { // Turn it to an objc_retainAutoreleasedReturnValue.. Changed = true; ++NumPeeps; + + DEBUG(dbgs() << "ObjCARCOpt::OptimizeRetainCall: Transforming " + "objc_retainAutoreleasedReturnValue => " + "objc_retain since the operand is not a return value.\n" + " Old: " + << *Retain << "\n"); + cast<CallInst>(Retain)->setCalledFunction(getRetainRVCallee(F.getParent())); + + DEBUG(dbgs() << " New: " + << *Retain << "\n"); } /// OptimizeRetainRVCall - Turn objc_retainAutoreleasedReturnValue into |