[llvm] r253842 - [Analysis/CallGraph] Switch dump() definitions over to LLVM_DUMP_METHOD.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 22 18:58:42 PST 2015


Author: davide
Date: Sun Nov 22 20:58:42 2015
New Revision: 253842

URL: http://llvm.org/viewvc/llvm-project?rev=253842&view=rev
Log:
[Analysis/CallGraph] Switch dump() definitions over to LLVM_DUMP_METHOD.

Modified:
    llvm/trunk/lib/Analysis/CallGraph.cpp

Modified: llvm/trunk/lib/Analysis/CallGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CallGraph.cpp?rev=253842&r1=253841&r2=253842&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CallGraph.cpp (original)
+++ llvm/trunk/lib/Analysis/CallGraph.cpp Sun Nov 22 20:58:42 2015
@@ -127,9 +127,8 @@ void CallGraph::print(raw_ostream &OS) c
     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 &O
   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_ost
   G->print(OS);
 }
 
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+LLVM_DUMP_METHOD
 void CallGraphWrapperPass::dump() const { print(dbgs(), nullptr); }
-#endif




More information about the llvm-commits mailing list