diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-04 00:21:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-04 00:21:19 +0000 |
commit | 16500158223d4147ae97513bf698d5f321b15889 (patch) | |
tree | f1443b813c3025f07afe4ab083302490be7fe50b /include | |
parent | c875f023d41f60efc79647e9c2dd44ab0c8c03ca (diff) | |
download | llvm-16500158223d4147ae97513bf698d5f321b15889.tar.gz llvm-16500158223d4147ae97513bf698d5f321b15889.tar.bz2 llvm-16500158223d4147ae97513bf698d5f321b15889.tar.xz |
Allow the call graph to be called from analyze naturally with print implemented
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/CallGraph.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index 3c9106cec2..740709d29f 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -137,6 +137,12 @@ public: destroy(); } + /// Print the types found in the module. If the optional Module parameter is + /// passed in, then the types are printed symbolically if possible, using the + /// symbol table from the module. + /// + void print(std::ostream &o, const Module *M) const; + private: //===--------------------------------------------------------------------- // Implementation of CallGraph construction @@ -250,21 +256,4 @@ template<> struct GraphTraits<const CallGraph*> : } }; - -//===----------------------------------------------------------------------===// -// Printing support for Call Graphs -// - -// Stuff for printing out a callgraph... - -void WriteToOutput(const CallGraph &, std::ostream &o); -inline std::ostream &operator <<(std::ostream &o, const CallGraph &CG) { - WriteToOutput(CG, o); return o; -} - -void WriteToOutput(const CallGraphNode *, std::ostream &o); -inline std::ostream &operator <<(std::ostream &o, const CallGraphNode *CGN) { - WriteToOutput(CGN, o); return o; -} - #endif |