summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PseudoSourceValue.cpp
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
commit72e7d91591f438c3cd31a71f0996026c13d2e4c1 (patch)
tree154125dcd64b241553cbe61cdcce1da8b4c2cdab /llvm/lib/CodeGen/PseudoSourceValue.cpp
parent6a951c240b6de1615be035887687c53e50f38d09 (diff)
downloadbcm5719-llvm-72e7d91591f438c3cd31a71f0996026c13d2e4c1.tar.gz
bcm5719-llvm-72e7d91591f438c3cd31a71f0996026c13d2e4c1.zip
Print PseudoSourceValue.
llvm-svn: 55291
Diffstat (limited to 'llvm/lib/CodeGen/PseudoSourceValue.cpp')
-rw-r--r--llvm/lib/CodeGen/PseudoSourceValue.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PseudoSourceValue.cpp b/llvm/lib/CodeGen/PseudoSourceValue.cpp
index bcf4ea8fb75..ac41609d39a 100644
--- a/llvm/lib/CodeGen/PseudoSourceValue.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud