aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/AsmWriter.cpp
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
commita8abee21364759334578c3bcbd9014982df03bdc (patch)
tree9b091ed97ba4d988f2ba2823b95a49fc070ea2ea /lib/VMCore/AsmWriter.cpp
parentcb37056996d8a89e23a8e1c1e230412822eeb52a (diff)
downloadexternal_llvm-a8abee21364759334578c3bcbd9014982df03bdc.zip
external_llvm-a8abee21364759334578c3bcbd9014982df03bdc.tar.gz
external_llvm-a8abee21364759334578c3bcbd9014982df03bdc.tar.bz2
Fix printing of Argument objects, problem found by Patrick Meredith
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r--lib/VMCore/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 976cdd5..a82132f 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/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.