From 72e7d91591f438c3cd31a71f0996026c13d2e4c1 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sun, 24 Aug 2008 18:51:20 +0000 Subject: Print PseudoSourceValue. llvm-svn: 55291 --- llvm/lib/CodeGen/PseudoSourceValue.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm/lib/CodeGen/PseudoSourceValue.cpp') 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 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 > FSValues; -- cgit v1.2.3