diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-01-06 23:39:13 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-01-06 23:39:13 +0000 |
commit | 38bc25a52e7f0019c7339371f2eca080269dd6af (patch) | |
tree | 4bcd88243453c5dcd2b9daae71006b542039203f | |
parent | 817d4e942bf7e7ef51002eb905e5751b44c51223 (diff) |
[ObjCARC Debug Message] - Added debug message when we add a nounwind keyword to a function which can not throw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171676 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/ObjCARC.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/ObjCARC.cpp b/lib/Transforms/Scalar/ObjCARC.cpp index c840e6e4c8..1ba5a50384 100644 --- a/lib/Transforms/Scalar/ObjCARC.cpp +++ b/lib/Transforms/Scalar/ObjCARC.cpp @@ -2452,6 +2452,8 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) { // Set nounwind as needed. if (IsNoThrow(Class)) { Changed = true; + DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Found no throw" + " class. Setting nounwind on: " << *Inst << "\n"); cast<CallInst>(Inst)->setDoesNotThrow(); } |