From 8800a51ac1968fc328db3f3d27ab327a9a2e6426 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Sun, 6 Jan 2013 23:39:13 +0000 Subject: [ObjCARC Debug Message] - Added debug message when we add a nounwind keyword to a function which can not throw. llvm-svn: 171676 --- llvm/lib/Transforms/Scalar/ObjCARC.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Transforms/Scalar/ObjCARC.cpp b/llvm/lib/Transforms/Scalar/ObjCARC.cpp index c840e6e4c8c..1ba5a503848 100644 --- a/llvm/lib/Transforms/Scalar/ObjCARC.cpp +++ b/llvm/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(Inst)->setDoesNotThrow(); } -- cgit v1.2.3