OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2613042
)
Added debug message for ObjCARC when we zap an objc_autoreleaseReturnValue/objc_retai...
author
Michael Gottesman
<mgottesman@apple.com>
Sat, 5 Jan 2013 17:55:35 +0000
(17:55 +0000)
committer
Michael Gottesman
<mgottesman@apple.com>
Sat, 5 Jan 2013 17:55:35 +0000
(17:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171628
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/ObjCARC.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/ObjCARC.cpp
b/lib/Transforms/Scalar/ObjCARC.cpp
index
1e9b08e
..
de09713
100644
(file)
--- a/
lib/Transforms/Scalar/ObjCARC.cpp
+++ b/
lib/Transforms/Scalar/ObjCARC.cpp
@@
-2247,6
+2247,11
@@
ObjCARCOpt::OptimizeRetainRVCall(Function &F, Instruction *RetainRV) {
GetObjCArg(I) == Arg) {
Changed = true;
++NumPeeps;
+
+ DEBUG(dbgs() << "ObjCARCOpt::OptimizeRetainRVCall: Erasing " << *I << "\n"
+ << " Erasing " << *RetainRV
+ << "\n");
+
EraseInstruction(I);
EraseInstruction(RetainRV);
return true;