[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
Misha Brukman
brukman at cs.uiuc.edu
Thu Aug 4 07:22:52 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGPrinter.cpp updated: 1.17 -> 1.18
---
Log message:
* Unbreak release build
* Add comments to #endif pragmas for readability
---
Diffs of the changes: (+6 -3)
SelectionDAGPrinter.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.17 llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.18
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.17 Wed Aug 3 15:31:37 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Thu Aug 4 09:22:41 2005
@@ -127,7 +127,7 @@
system(("rm " + Filename).c_str());
return;
}
-#endif
+#endif // HAVE_GRAPHVIZ
#ifdef HAVE_GV
std::cerr << "Running 'dot' program... " << std::flush;
@@ -140,9 +140,12 @@
}
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
}
More information about the llvm-commits
mailing list