diff options
author | Dan Gohman <gohman@apple.com> | 2009-04-21 00:47:46 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-04-21 00:47:46 +0000 |
commit | b7ef72963b2215ca23c27fa8ea777bada06994d0 (patch) | |
tree | 3e4add3f49e5a7e07337b877a678514d6f9f9523 /include/llvm/Analysis/ScalarEvolutionExpressions.h | |
parent | 3e3702d00b2ce4c9c1fed41c05f9968414ff5819 (diff) | |
download | external_llvm-b7ef72963b2215ca23c27fa8ea777bada06994d0.zip external_llvm-b7ef72963b2215ca23c27fa8ea777bada06994d0.tar.gz external_llvm-b7ef72963b2215ca23c27fa8ea777bada06994d0.tar.bz2 |
Convert ScalarEvolution to use raw_ostream instead of OStream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpressions.h')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpressions.h | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpressions.h b/include/llvm/Analysis/ScalarEvolutionExpressions.h index c160eb9..1cfc639 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpressions.h +++ b/include/llvm/Analysis/ScalarEvolutionExpressions.h @@ -63,8 +63,7 @@ namespace llvm { return true; } - virtual void print(std::ostream &OS) const; - void print(std::ostream *OS) const { if (OS) print(*OS); } + virtual void print(raw_ostream &OS) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const SCEVConstant *S) { return true; } @@ -107,8 +106,7 @@ namespace llvm { virtual bool dominates(BasicBlock *BB, DominatorTree *DT) const; - virtual void print(std::ostream &OS) const; - void print(std::ostream *OS) const { if (OS) print(*OS); } + virtual void print(raw_ostream &OS) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const SCEVTruncateExpr *S) { return true; } @@ -151,8 +149,7 @@ namespace llvm { bool dominates(BasicBlock *BB, DominatorTree *DT) const; - virtual void print(std::ostream &OS) const; - void print(std::ostream *OS) const { if (OS) print(*OS); } + virtual void print(raw_ostream &OS) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const SCEVZeroExtendExpr *S) { return true; } @@ -195,8 +192,7 @@ namespace llvm { bool dominates(BasicBlock *BB, DominatorTree *DT) const; - virtual void print(std::ostream &OS) const; - void print(std::ostream *OS) const { if (OS) print(*OS); } + virtual void print(raw_ostream &OS) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const SCEVSignExtendExpr *S) { return true; } @@ -266,8 +262,7 @@ namespace llvm { virtual const char *getOperationStr() const = 0; virtual const Type *getType() const { return getOperand(0)->getType(); } - virtual void print(std::ostream &OS) const; - void print(std::ostream *OS) const { if (OS) print(*OS); } + virtual void print(raw_ostream &OS) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const SCEVCommutativeExpr *S) { return true; } @@ -360,8 +355,7 @@ namespace llvm { virtual const Type *getType() const; - void print(std::ostream &OS) const; - void print(std::ostream *OS) const { if (OS) print(*OS); } + void print(raw_ostream &OS) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const SCEVUDivExpr *S) { return true; } @@ -453,8 +447,7 @@ namespace llvm { bool dominates(BasicBlock *BB, DominatorTree *DT) const; - virtual void print(std::ostream &OS) const; - void print(std::ostream *OS) const { if (OS) print(*OS); } + virtual void print(raw_ostream &OS) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const SCEVAddRecExpr *S) { return true; } @@ -538,8 +531,7 @@ namespace llvm { virtual const Type *getType() const; - virtual void print(std::ostream &OS) const; - void print(std::ostream *OS) const { if (OS) print(*OS); } + virtual void print(raw_ostream &OS) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const SCEVUnknown *S) { return true; } |