[llvm] r246717 - Fix release build warning for unused function
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 2 14:57:18 PDT 2015
Author: reames
Date: Wed Sep 2 16:57:17 2015
New Revision: 246717
URL: http://llvm.org/viewvc/llvm-project?rev=246717&view=rev
Log:
Fix release build warning for unused function
Modified:
llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=246717&r1=246716&r2=246717&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Wed Sep 2 16:57:17 2015
@@ -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
More information about the llvm-commits
mailing list