aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2013-05-13 21:10:49 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2013-05-13 21:10:49 +0000
commit9b5e6c0943dcfced64980240e25427cdc06c9bad (patch)
tree962f7194c363b916f49e711c1ef8950081fe6267 /lib/Transforms/ObjCARC/ObjCARCOpts.cpp
parentf4a1377322a9234c17b1d324c47248bdb5f62158 (diff)
Move a couple more statistics inside '#ifndef NDEBUG'.
Suppresses an unused-variable warning in -Asserts builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ObjCARC/ObjCARCOpts.cpp')
-rw-r--r--lib/Transforms/ObjCARC/ObjCARCOpts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp b/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
index d2d8325d1f..bab49e75b7 100644
--- a/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
+++ b/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
@@ -303,11 +303,11 @@ STATISTIC(NumRets, "Number of return value forwarding "
"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,