diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-03 21:37:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-03 21:37:21 +0000 |
commit | d71703deec9e3fe90833e82e0c8b6bf7e5af55fd (patch) | |
tree | fc1e18f70a58f40a047e8051090cc01842a5e1dd /lib/CodeGen/PseudoSourceValue.cpp | |
parent | 544e0d0e52e68e8bb0c4ce18bd6584602353ce1c (diff) |
Have PseudoSourceValue override Value::dump, so that it works
on PseudoSourceValue values. This also fixes a FIXME in
lib/VMCode/AsmWriter.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PseudoSourceValue.cpp')
-rw-r--r-- | lib/CodeGen/PseudoSourceValue.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/PseudoSourceValue.cpp b/lib/CodeGen/PseudoSourceValue.cpp index 5247906c46..d0ea7069d4 100644 --- a/lib/CodeGen/PseudoSourceValue.cpp +++ b/lib/CodeGen/PseudoSourceValue.cpp @@ -41,6 +41,10 @@ static const char *const PSVNames[] = { PseudoSourceValue::PseudoSourceValue() : Value(PointerType::getUnqual(Type::Int8Ty), PseudoSourceValueVal) {} +void PseudoSourceValue::dump() const { + print(errs()); errs() << '\n'; errs().flush(); +} + void PseudoSourceValue::print(raw_ostream &OS) const { OS << PSVNames[this - *PSVs]; } |