OSDN Git Service

Exclude more unused functions from release build.
authorFlorian Hahn <florian.hahn@arm.com>
Mon, 31 Jul 2017 16:44:28 +0000 (16:44 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Mon, 31 Jul 2017 16:44:28 +0000 (16:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309576 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonConstPropagation.cpp

index 2c03538..f987390 100644 (file)
@@ -170,10 +170,12 @@ namespace {
     bool convertToProperty();
   };
 
+#ifndef NDEBUG
   raw_ostream &operator<< (raw_ostream &os, const LatticeCell &L) {
     L.print(os);
     return os;
   }
+#endif
 
   class MachineConstEvaluator;
 
@@ -463,6 +465,7 @@ bool LatticeCell::convertToProperty() {
   return true;
 }
 
+#ifndef NDEBUG
 void LatticeCell::print(raw_ostream &os) const {
   if (isProperty()) {
     os << "{ ";
@@ -500,6 +503,7 @@ void LatticeCell::print(raw_ostream &os) const {
   }
   os << " }";
 }
+#endif
 
 // "Meet" operation on two cells. This is the key of the propagation
 // algorithm.