[llvm] r319923 - [Target] dumpr() is defined only in debug builds.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 10:54:17 PST 2017
Author: davide
Date: Wed Dec 6 10:54:17 2017
New Revision: 319923
URL: http://llvm.org/viewvc/llvm-project?rev=319923&view=rev
Log:
[Target] dumpr() is defined only in debug builds.
This fixes the clang build on macOS.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp?rev=319923&r1=319922&r2=319923&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp Wed Dec 6 10:54:17 2017
@@ -729,7 +729,9 @@ void NodeTemplate::print(raw_ostream &OS
void ResultStack::print(raw_ostream &OS, const SelectionDAG &G) const {
OS << "Input node:\n";
+#ifndef NDEBUG
InpNode->dumpr(&G);
+#endif
OS << "Result templates:\n";
for (unsigned I = 0, E = List.size(); I != E; ++I) {
OS << '[' << I << "] ";
More information about the llvm-commits
mailing list