diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-08-24 18:51:20 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-08-24 18:51:20 +0000 |
commit | 2a65caa6ce4e0c97ac34374c7711be155ba9dc45 (patch) | |
tree | e9cb552ee68a9fc0043fb304365023501c55cbcc /lib/CodeGen/PseudoSourceValue.cpp | |
parent | 7f9dac0a277ef43c466800ecc3b81700803ae194 (diff) | |
download | external_llvm-2a65caa6ce4e0c97ac34374c7711be155ba9dc45.tar.gz external_llvm-2a65caa6ce4e0c97ac34374c7711be155ba9dc45.tar.bz2 external_llvm-2a65caa6ce4e0c97ac34374c7711be155ba9dc45.zip |
Print PseudoSourceValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PseudoSourceValue.cpp')
-rw-r--r-- | lib/CodeGen/PseudoSourceValue.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/PseudoSourceValue.cpp b/lib/CodeGen/PseudoSourceValue.cpp index bcf4ea8fb7..ac41609d39 100644 --- a/lib/CodeGen/PseudoSourceValue.cpp +++ b/lib/CodeGen/PseudoSourceValue.cpp @@ -16,6 +16,7 @@ #include "llvm/DerivedTypes.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/ManagedStatic.h" +#include "llvm/Support/raw_ostream.h" #include <map> namespace llvm { @@ -43,6 +44,9 @@ namespace llvm { void PseudoSourceValue::print(std::ostream &OS) const { OS << PSVNames[this - *PSVs]; } + void PseudoSourceValue::print(raw_ostream &OS) const { + OS << PSVNames[this - *PSVs]; + } /// FixedStackPseudoSourceValue - A specialized PseudoSourceValue /// for holding FixedStack values, which must include a frame @@ -58,6 +62,9 @@ namespace llvm { virtual void print(std::ostream &OS) const { OS << "FixedStack" << FI; } + virtual void print(raw_ostream &OS) const { + OS << "FixedStack" << FI; + } }; static ManagedStatic<std::map<int, const PseudoSourceValue *> > FSValues; |