aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2005-08-04 14:22:41 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2005-08-04 14:22:41 +0000
commitcd33eef1b2dc1e81ab57b4857cb63c47bb62a496 (patch)
treea83cd133a8756bbc324cc6b96729ca42c4f29773 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parente2d7fdf62cf5bc6d5f2d4a040ce9954aa827d39d (diff)
* Unbreak release build
* Add comments to #endif pragmas for readability git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 3b4cb287f8..a94aaa4aaa 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -127,7 +127,7 @@ void SelectionDAG::viewGraph() {
system(("rm " + Filename).c_str());
return;
}
-#endif
+#endif // HAVE_GRAPHVIZ
#ifdef HAVE_GV
std::cerr << "Running 'dot' program... " << std::flush;
@@ -140,9 +140,12 @@ void SelectionDAG::viewGraph() {
}
system(("rm " + Filename + " /tmp/dag.tempgraph.ps").c_str());
return;
-#endif
-#endif
+#endif // HAVE_GV
+#endif // NDEBUG
std::cerr << "SelectionDAG::viewGraph is only available in debug builds on "
<< "systems with Graphviz or gv!\n";
+
+#ifndef NDEBUG
system(("rm " + Filename).c_str());
+#endif
}