Fix release build warning for unused function
authorPhilip Reames <listmail@philipreames.com>
Wed, 2 Sep 2015 21:57:17 +0000 (21:57 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 2 Sep 2015 21:57:17 +0000 (21:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246717 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index e469585..e4a05bb 100644 (file)
@@ -616,11 +616,12 @@ private:
   Value *base; // non null only if status == base
 };
 
+#ifndef NDEBUG
 inline raw_ostream &operator<<(raw_ostream &OS, const BDVState &State) {
   State.print(OS);
   return OS;
 }
-
+#endif
 
 typedef DenseMap<Value *, BDVState> ConflictStateMapTy;
 // Values of type BDVState form a lattice, and this is a helper