diff options
| author | Dan Gohman <gohman@apple.com> | 2008-07-30 18:48:53 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-07-30 18:48:53 +0000 |
| commit | 88e0df0c9128a09c001c06f984a35ce0048ad526 (patch) | |
| tree | f8abb92087b93076c6b35a7009dcde41c4bc283b | |
| parent | 2fe4352691bf4b80517ee36730cfddfb719d79fc (diff) | |
| download | bcm5719-llvm-88e0df0c9128a09c001c06f984a35ce0048ad526.tar.gz bcm5719-llvm-88e0df0c9128a09c001c06f984a35ce0048ad526.zip | |
Move SelectionDAG::viewGraph() out of line; as an inline function
it isn't always visible to gdb.
llvm-svn: 54228
| -rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAG.h | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h index 49dbd4347a1..3c1c031bd76 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAG.h +++ b/llvm/include/llvm/CodeGen/SelectionDAG.h @@ -117,7 +117,7 @@ public: /// viewGraph - Pop up a GraphViz/gv window with the DAG rendered using 'dot'. /// void viewGraph(const std::string &Title); - void viewGraph() { return viewGraph(""); } + void viewGraph(); #ifndef NDEBUG std::map<const SDNode *, std::string> NodeGraphAttrs; diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 19a3e49055e..ea86c0d591c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -252,6 +252,11 @@ void SelectionDAG::viewGraph(const std::string &Title) { #endif // NDEBUG } +// This overload is defined out-of-line here instead of just using a +// default parameter because this is easiest for gdb to call. +void SelectionDAG::viewGraph() { + viewGraph(""); +} /// clearGraphAttrs - Clear all previously defined node graph attributes. /// Intended to be used from a debugging tool (eg. gdb). |

