summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/CallGraph.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-11-23 02:58:42 +0000
committerDavide Italiano <davide@freebsd.org>2015-11-23 02:58:42 +0000
commit6f93df81058631a61f81e90f07a779ffa468df83 (patch)
treee18ea6b7908a22b4ae26c92506f4c9fb930c1162 /llvm/lib/Analysis/CallGraph.cpp
parent945d05f6a088ec8bd1a689516a107f3a210bb33d (diff)
downloadbcm5719-llvm-6f93df81058631a61f81e90f07a779ffa468df83.tar.gz
bcm5719-llvm-6f93df81058631a61f81e90f07a779ffa468df83.zip
[Analysis/CallGraph] Switch dump() definitions over to LLVM_DUMP_METHOD.
llvm-svn: 253842
Diffstat (limited to 'llvm/lib/Analysis/CallGraph.cpp')
-rw-r--r--llvm/lib/Analysis/CallGraph.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/CallGraph.cpp b/llvm/lib/Analysis/CallGraph.cpp
index 083b22d0170..7cec962678e 100644
--- a/llvm/lib/Analysis/CallGraph.cpp
+++ b/llvm/lib/Analysis/CallGraph.cpp
@@ -127,9 +127,8 @@ void CallGraph::print(raw_ostream &OS) const {
CN->print(OS);
}
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+LLVM_DUMP_METHOD
void CallGraph::dump() const { print(dbgs()); }
-#endif
// removeFunctionFromModule - Unlink the function from this module, returning
// it. Because this removes the function from the module, the call graph node
@@ -197,9 +196,8 @@ void CallGraphNode::print(raw_ostream &OS) const {
OS << '\n';
}
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+LLVM_DUMP_METHOD
void CallGraphNode::dump() const { print(dbgs()); }
-#endif
/// removeCallEdgeFor - This method removes the edge in the node for the
/// specified call site. Note that this method takes linear time, so it
@@ -304,6 +302,5 @@ void CallGraphWrapperPass::print(raw_ostream &OS, const Module *) const {
G->print(OS);
}
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+LLVM_DUMP_METHOD
void CallGraphWrapperPass::dump() const { print(dbgs(), nullptr); }
-#endif
OpenPOWER on IntegriCloud