forked from OSchip/llvm-project
[Analysis/CallGraph] Switch dump() definitions over to LLVM_DUMP_METHOD.
llvm-svn: 253842
This commit is contained in:
parent
945d05f6a0
commit
6f93df8105
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue