aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/CallGraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Analysis/CallGraph.h')
-rw-r--r--include/llvm/Analysis/CallGraph.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h
index b567bab..f29aef3 100644
--- a/include/llvm/Analysis/CallGraph.h
+++ b/include/llvm/Analysis/CallGraph.h
@@ -152,6 +152,9 @@ public:
///
void initialize(Module &M);
+ void print(llvm_ostream &o, const Module *M) const {
+ if (o.stream()) print(*o.stream(), M);
+ }
virtual void print(std::ostream &o, const Module *M) const;
void dump() const;
@@ -198,6 +201,9 @@ public:
/// dump - Print out this call graph node.
///
void dump() const;
+ void print(llvm_ostream &OS) const {
+ if (OS.stream()) print(*OS.stream());
+ }
void print(std::ostream &OS) const;
//===---------------------------------------------------------------------