summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp b/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp
index 2c03538d7e6..f9873903e8a 100644
--- a/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp
@@ -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.
OpenPOWER on IntegriCloud