From: Chris Lattner Date: Fri, 18 Jun 2004 04:07:20 +0000 (+0000) Subject: Fix printing of Argument objects, problem found by Patrick Meredith X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8abee21364759334578c3bcbd9014982df03bdc;p=oota-llvm.git 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 --- 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.