[llvm-commits] [llvm] r171676 - /llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp

Michael Gottesman mgottesman at apple.com
Sun Jan 6 15:39:13 PST 2013


Author: mgottesman
Date: Sun Jan  6 17:39:13 2013
New Revision: 171676

URL: http://llvm.org/viewvc/llvm-project?rev=171676&view=rev
Log:
[ObjCARC Debug Message] - Added debug message when we add a nounwind keyword to a function which can not throw.

Modified:
    llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp?rev=171676&r1=171675&r2=171676&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp Sun Jan  6 17:39:13 2013
@@ -2452,6 +2452,8 @@
     // 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();
     }
 





More information about the llvm-commits mailing list