From 989573571b0f69924452a8941d38cc5876edc4a7 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Fri, 5 Apr 2013 18:26:08 +0000 Subject: [PATCH] Added two debug logging messages to VisitInstructionsTopDown to match VisitInstructionsBottomUp. llvm-svn: 178895 --- lib/Transforms/ObjCARC/ObjCARCOpts.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp b/lib/Transforms/ObjCARC/ObjCARCOpts.cpp index 1c1cec722ab..3b1d7a863f3 100644 --- a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp +++ b/lib/Transforms/ObjCARC/ObjCARCOpts.cpp @@ -2063,6 +2063,8 @@ ObjCARCOpt::VisitInstructionTopDown(Instruction *Inst, // Check for possible releases. if (CanAlterRefCount(Inst, Ptr, PA, Class)) { + DEBUG(dbgs() << "CanAlterRefCount: Seq: " << Seq << "; " << *Ptr + << "\n"); S.ClearKnownPositiveRefCount(); switch (Seq) { case S_Retain: @@ -2090,6 +2092,8 @@ ObjCARCOpt::VisitInstructionTopDown(Instruction *Inst, switch (Seq) { case S_CanRelease: if (CanUse(Inst, Ptr, PA, Class)) { + DEBUG(dbgs() << "CanUse: Seq: " << Seq << "; " << *Ptr + << "\n"); S.SetSeq(S_Use); ANNOTATE_TOPDOWN(Inst, Ptr, Seq, S_Use); }