summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/CallGraph.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-09-06 19:55:56 +0000
committerManman Ren <mren@apple.com>2012-09-06 19:55:56 +0000
commitc3366ccecb3ffa7eecf0c8a173e5fc8387a44b29 (patch)
treedb482bae56f5e3a06e1ad311ee506ecd1d088c02 /llvm/lib/Analysis/IPA/CallGraph.cpp
parent84ecc3481b7dc1c9a8264dd11ea91ff9dcd9dbd2 (diff)
downloadbcm5719-llvm-c3366ccecb3ffa7eecf0c8a173e5fc8387a44b29.tar.gz
bcm5719-llvm-c3366ccecb3ffa7eecf0c8a173e5fc8387a44b29.zip
Release build: guard dump functions with "ifndef NDEBUG"
No functional change. llvm-svn: 163344
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index 0df3e8a3821..947ad519c6b 100644
--- a/llvm/lib/Analysis/IPA/CallGraph.cpp
+++ b/llvm/lib/Analysis/IPA/CallGraph.cpp
@@ -198,9 +198,11 @@ void CallGraph::print(raw_ostream &OS, Module*) const {
for (CallGraph::const_iterator I = begin(), E = end(); I != E; ++I)
I->second->print(OS);
}
+#ifndef NDEBUG
void CallGraph::dump() const {
print(dbgs(), 0);
}
+#endif
//===----------------------------------------------------------------------===//
// Implementations of public modification methods
@@ -267,7 +269,9 @@ void CallGraphNode::print(raw_ostream &OS) const {
OS << '\n';
}
+#ifndef NDEBUG
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
OpenPOWER on IntegriCloud