aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/AliasSetTracker.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-11-28 22:21:29 +0000
committerBill Wendling <isanbard@gmail.com>2006-11-28 22:21:29 +0000
commitb5ebf15b2b2ce8989caf1a1114b05d80b0f9bd48 (patch)
treed3bcb286a90fa4c2b441167133b09cf44c1a7f04 /include/llvm/Analysis/AliasSetTracker.h
parentd4d9ab80b7b23c2f73192319e5582fb6802f5f18 (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.h15
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;