diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-28 22:21:29 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-28 22:21:29 +0000 |
commit | b5ebf15b2b2ce8989caf1a1114b05d80b0f9bd48 (patch) | |
tree | d3bcb286a90fa4c2b441167133b09cf44c1a7f04 /include/llvm/Analysis/AliasSetTracker.h | |
parent | d4d9ab80b7b23c2f73192319e5582fb6802f5f18 (diff) |
Added a temporary hack to get the llvm-streams to work for future checkins.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/AliasSetTracker.h')
-rw-r--r-- | include/llvm/Analysis/AliasSetTracker.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h index 082d89910b..c4273ac37d 100644 --- a/include/llvm/Analysis/AliasSetTracker.h +++ b/include/llvm/Analysis/AliasSetTracker.h @@ -18,6 +18,7 @@ #define LLVM_ANALYSIS_ALIASSETTRACKER_H #include "llvm/Support/CallSite.h" +#include "llvm/Support/Streams.h" #include "llvm/ADT/iterator" #include "llvm/ADT/hash_map" #include "llvm/ADT/ilist" @@ -155,6 +156,9 @@ public: iterator end() const { return iterator(); } bool empty() const { return PtrList == 0; } + void print(llvm_ostream &OS) const { + if (OS.stream()) print(*OS.stream()); + } void print(std::ostream &OS) const; void dump() const; @@ -244,6 +248,10 @@ private: bool aliasesCallSite(CallSite CS, AliasAnalysis &AA) const; }; +inline llvm_ostream& operator<<(llvm_ostream &OS, const AliasSet &AS) { + AS.print(OS); + return OS; +} inline std::ostream& operator<<(std::ostream &OS, const AliasSet &AS) { AS.print(OS); return OS; @@ -353,6 +361,9 @@ public: iterator begin() { return AliasSets.begin(); } iterator end() { return AliasSets.end(); } + void print(llvm_ostream &OS) const { + if (OS.stream()) print(*OS.stream()); + } void print(std::ostream &OS) const; void dump() const; @@ -379,6 +390,10 @@ private: AliasSet *findAliasSetForCallSite(CallSite CS); }; +inline llvm_ostream& operator<<(llvm_ostream &OS, const AliasSetTracker &AST) { + AST.print(OS); + return OS; +} inline std::ostream& operator<<(std::ostream &OS, const AliasSetTracker &AST) { AST.print(OS); return OS; |