[llvm] r309576 - Exclude more unused functions from release build.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 31 09:44:29 PDT 2017
Author: fhahn
Date: Mon Jul 31 09:44:28 2017
New Revision: 309576
URL: http://llvm.org/viewvc/llvm-project?rev=309576&view=rev
Log:
Exclude more unused functions from release build.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp?rev=309576&r1=309575&r2=309576&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp Mon Jul 31 09:44:28 2017
@@ -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)
}
os << " }";
}
+#endif
// "Meet" operation on two cells. This is the key of the propagation
// algorithm.
More information about the llvm-commits
mailing list