summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-08-24 18:51:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-08-24 18:51:20 +0000
commit40ab164d3ae6fddb279ae49ab2f9756b466c640a (patch)
treee9cb552ee68a9fc0043fb304365023501c55cbcc /include
parent42387462303a8eb917569305d5390c8da64ac82f (diff)
downloadllvm-40ab164d3ae6fddb279ae49ab2f9756b466c640a.tar.gz
llvm-40ab164d3ae6fddb279ae49ab2f9756b466c640a.tar.bz2
llvm-40ab164d3ae6fddb279ae49ab2f9756b466c640a.tar.xz
Print PseudoSourceValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/PseudoSourceValue.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/PseudoSourceValue.h b/include/llvm/CodeGen/PseudoSourceValue.h
index 115e565b6b..4620456ecf 100644
--- a/include/llvm/CodeGen/PseudoSourceValue.h
+++ b/include/llvm/CodeGen/PseudoSourceValue.h
@@ -18,6 +18,7 @@
namespace llvm {
class MachineFrameInfo;
+ class raw_ostream;
/// PseudoSourceValue - Special value supplied for machine level alias
/// analysis. It indicates that the a memory access references the functions
@@ -28,6 +29,7 @@ namespace llvm {
PseudoSourceValue();
virtual void print(std::ostream &OS) const;
+ virtual void print(raw_ostream &OS) const;
/// isConstant - Test whether this PseudoSourceValue has a constant value.
///
@@ -59,6 +61,16 @@ namespace llvm {
/// A SV referencing the jump table
static const PseudoSourceValue *getJumpTable();
};
+
+inline std::ostream &operator<<(std::ostream &OS,const PseudoSourceValue &PSV) {
+ PSV.print(OS);
+ return OS;
+}
+inline raw_ostream &operator<<(raw_ostream &OS, const PseudoSourceValue &PSV) {
+ PSV.print(OS);
+ return OS;
+}
+
} // End llvm namespace
#endif