diff options
author | Chris Lattner <sabre@nondot.org> | 2005-07-14 05:17:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-07-14 05:17:43 +0000 |
commit | e388b5ea2c599a1db72497bf2d2920895da28f47 (patch) | |
tree | f75cb6244fe12dfa52d06b54ef85d14823d0a735 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | c232a658274117b8db1f6dfd1aa2dbb3ab390381 (diff) |
As discussed on IRC, this stuff is just for debugging.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 8ab6783d56..fbe6cdb9c5 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -102,6 +102,10 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node, /// rendered using 'dot'. /// void SelectionDAG::viewGraph() { +// This code is only for debugging! +#ifdef NDEBUG + std::cerr << "SelectionDAG::viewGraph is only available in debug builds!\n"; +#else std::string Filename = "/tmp/dag." + getMachineFunction().getFunction()->getName() + ".dot"; std::cerr << "Writing '" << Filename << "'... "; @@ -134,4 +138,5 @@ void SelectionDAG::viewGraph() { system("gv /tmp/dag.tempgraph.ps"); } system(("rm " + Filename + " /tmp/dag.tempgraph.ps").c_str()); +#endif } |