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 | ee1cd1781ad847e1e677f3fe35ed56a02acb4be8 (patch) | |
tree | 886596c7c4e8ada83e4782eccfdd67d6f2323e62 /llvm/lib/CodeGen/PseudoSourceValue.cpp | |
parent | f7a588b9098743e08bffa940e1643f28e8302b14 (diff) | |
download | llvm-ee1cd1781ad847e1e677f3fe35ed56a02acb4be8.zip llvm-ee1cd1781ad847e1e677f3fe35ed56a02acb4be8.tar.gz llvm-ee1cd1781ad847e1e677f3fe35ed56a02acb4be8.tar.bz2 |
Have PseudoSourceValue override Value::dump, so that it works
on PseudoSourceValue values. This also fixes a FIXME in
lib/VMCode/AsmWriter.cpp.
llvm-svn: 60507
Diffstat (limited to 'llvm/lib/CodeGen/PseudoSourceValue.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PseudoSourceValue.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PseudoSourceValue.cpp b/llvm/lib/CodeGen/PseudoSourceValue.cpp index 5247906..d0ea706 100644 --- a/llvm/lib/CodeGen/PseudoSourceValue.cpp +++ b/llvm/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]; } |