summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-30 18:48:53 +0000
committerDan Gohman <gohman@apple.com>2008-07-30 18:48:53 +0000
commit0b12aef49087b57d276ed760a83525d1e2602144 (patch)
treea9da0d4d68e7efb687fe592f63a44e11476f29b0 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parent90d33ee746f354030a4144c4ffa028599663615b (diff)
downloadllvm-0b12aef49087b57d276ed760a83525d1e2602144.tar.gz
llvm-0b12aef49087b57d276ed760a83525d1e2602144.tar.bz2
llvm-0b12aef49087b57d276ed760a83525d1e2602144.tar.xz
Move SelectionDAG::viewGraph() out of line; as an inline function
it isn't always visible to gdb. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 19a3e49055..ea86c0d591 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/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).