summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-01-12 02:57:16 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-01-12 02:57:16 +0000
commitb24bdef7a495a86b0b234fde2432a92227d80eda (patch)
tree051cb617cc9fbafe976608d9a4802f3047a89cee /llvm/lib/Transforms
parent57752dc56e961b7e43ceb21353da98cb071c819b (diff)
downloadbcm5719-llvm-b24bdef7a495a86b0b234fde2432a92227d80eda.tar.gz
bcm5719-llvm-b24bdef7a495a86b0b234fde2432a92227d80eda.zip
Fixed a few debug messages in ObjCARC and added one.
llvm-svn: 172298
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/ObjCARC.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/ObjCARC.cpp b/llvm/lib/Transforms/Scalar/ObjCARC.cpp
index a982c35c748..5a2db6b3068 100644
--- a/llvm/lib/Transforms/Scalar/ObjCARC.cpp
+++ b/llvm/lib/Transforms/Scalar/ObjCARC.cpp
@@ -2602,10 +2602,8 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
}
}
} while (!Worklist.empty());
-
- DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Finished Queue.\n\n");
-
}
+ DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Finished List.\n");
}
/// CheckForCFGHazards - Check for critical edges, loop boundaries, irreducible
@@ -3869,6 +3867,8 @@ bool ObjCARCOpt::runOnFunction(Function &F) {
Changed = false;
+ DEBUG(dbgs() << "ObjCARCOpt: Visiting Function: " << F.getName() << "\n");
+
PA.setAA(&getAnalysis<AliasAnalysis>());
// This pass performs several distinct transformations. As a compile-time aid
@@ -3902,6 +3902,8 @@ bool ObjCARCOpt::runOnFunction(Function &F) {
(1 << IC_AutoreleaseRV)))
OptimizeReturns(F);
+ DEBUG(dbgs() << "\n");
+
return Changed;
}
OpenPOWER on IntegriCloud