From a8abee21364759334578c3bcbd9014982df03bdc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 18 Jun 2004 04:07:20 +0000 Subject: [PATCH] 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 --- lib/VMCore/AsmWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 976cdd5b7fd..a82132fc2bb 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.