Silence Release build warnings about unused functions.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 20 Nov 2010 15:53:24 +0000 (15:53 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 20 Nov 2010 15:53:24 +0000 (15:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119903 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 63f998a084488f5073ffd6664d0dabe0c163eefd..7ef8f7c19c69d22334e463bff5ba6daec7e80de1 100644 (file)
@@ -745,6 +745,7 @@ SDNode *SelectionDAG::FindModifiedNodeSlot(SDNode *N,
   return Node;
 }
 
+#ifndef NDEBUG
 /// VerifyNodeCommon - Sanity check the given node.  Aborts if it is invalid.
 static void VerifyNodeCommon(SDNode *N) {
   switch (N->getOpcode()) {
@@ -816,6 +817,7 @@ static void VerifyMachineNode(SDNode *N) {
 
   VerifyNodeCommon(N);
 }
+#endif // NDEBUG
 
 /// getEVTAlignment - Compute the default alignment value for the
 /// given type.