summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-18 04:07:20 +0000
committerChris Lattner <sabre@nondot.org>2004-06-18 04:07:20 +0000
commitfdf197ff6e98af6afb1759cdacae781215f8a018 (patch)
treef46738b590884143f6f1fd44129aa94fa8a3848a /llvm/lib
parent388f43ac3dd9229bcdd092d3a5dd03ae2b3332dc (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud