[llvm] r181733 - Move a couple more statistics inside '#ifndef NDEBUG'.
Matt Beaumont-Gay
matthewbg at google.com
Mon May 13 14:10:50 PDT 2013
Author: matthewbg
Date: Mon May 13 16:10:49 2013
New Revision: 181733
URL: http://llvm.org/viewvc/llvm-project?rev=181733&view=rev
Log:
Move a couple more statistics inside '#ifndef NDEBUG'.
Suppresses an unused-variable warning in -Asserts builds.
Modified:
llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
Modified: llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp?rev=181733&r1=181732&r2=181733&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp (original)
+++ llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp Mon May 13 16:10:49 2013
@@ -303,11 +303,11 @@ STATISTIC(NumRets, "Number of ret
"retain+autoreleaes eliminated");
STATISTIC(NumRRs, "Number of retain+release paths eliminated");
STATISTIC(NumPeeps, "Number of calls peephole-optimized");
+#ifndef NDEBUG
STATISTIC(NumRetainsBeforeOpt,
"Number of retains before optimization.");
STATISTIC(NumReleasesBeforeOpt,
"Number of releases before optimization.");
-#ifndef NDEBUG
STATISTIC(NumRetainsAfterOpt,
"Number of retains after optimization.");
STATISTIC(NumReleasesAfterOpt,
More information about the llvm-commits
mailing list