Fix printing of Argument objects, problem found by Patrick Meredith
authorChris Lattner <sabre@nondot.org>
Fri, 18 Jun 2004 04:07:20 +0000 (04:07 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 18 Jun 2004 04:07:20 +0000 (04:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14215 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 976cdd5b7fd9b3d5b22fba3b7c5db10e93055910..a82132fc2bbfb3e2fa99f451c68085f9fa4d63cc 100644 (file)
@@ -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.