aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/CallGraph.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-11-29 00:19:40 +0000
committerBill Wendling <isanbard@gmail.com>2006-11-29 00:19:40 +0000
commit68fe61d6a165ea6090008e281330895a21607daf (patch)
tree2e0cc1cbd16099aed908dbb3ecda16cf57d04300 /include/llvm/Analysis/CallGraph.h
parenta5b31ca85686062408bca0f0a8aa43f9fe58e644 (diff)
downloadexternal_llvm-68fe61d6a165ea6090008e281330895a21607daf.zip
external_llvm-68fe61d6a165ea6090008e281330895a21607daf.tar.gz
external_llvm-68fe61d6a165ea6090008e281330895a21607daf.tar.bz2
Replacing std::iostreams with llvm iostreams. Some of these changes involve
adding a temporary wrapper around the ostream to make it friendly to functions expecting an LLVM stream. This should be fixed in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31990 91177308-0d34-0410-b5e6-96231b3b80d8
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;
//===---------------------------------------------------------------------