diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-18 04:07:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-18 04:07:20 +0000 |
commit | fdf197ff6e98af6afb1759cdacae781215f8a018 (patch) | |
tree | f46738b590884143f6f1fd44129aa94fa8a3848a /llvm/lib | |
parent | 388f43ac3dd9229bcdd092d3a5dd03ae2b3332dc (diff) | |
download | bcm5719-llvm-fdf197ff6e98af6afb1759cdacae781215f8a018.tar.gz bcm5719-llvm-fdf197ff6e98af6afb1759cdacae781215f8a018.zip |
Fix printing of Argument objects, problem found by Patrick Meredith
llvm-svn: 14215
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 976cdd5b7fd..a82132fc2bb 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -1132,7 +1132,7 @@ void Type::print(std::ostream &o) const { } void Argument::print(std::ostream &o) const { - o << getType() << ' ' << getName(); + WriteAsOperand(o, this, true, true, getParent()->getParent()); } // Value::dump - allow easy printing of Values from the debugger. |