From 03a99197aacf187f713e0d6ae82fb1dd3f3cf5cd Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Sat, 23 Feb 2008 01:04:26 +0000 Subject: [PATCH] print getresult operand and its type directly. llvm-svn: 47514 --- lib/VMCore/AsmWriter.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index adbcd78c25f..55d037db141 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1292,17 +1292,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { writeOperand(I.getOperand(op+1), false); Out << " ]"; } } else if (const GetResultInst *GRI = dyn_cast(&I)) { - const StructType *STy = cast(I.getOperand(0)->getType()); - unsigned NumElems = STy->getNumElements(); - Out << " {"; - for (unsigned i = 0; i < NumElems; ++i) { - if (i) - Out << ","; - Out << " "; - printType(STy->getElementType(i)); - } - Out << " }"; - writeOperand(I.getOperand(0), false); + writeOperand(I.getOperand(0), true); Out << ", " << GRI->getIndex(); } else if (isa(I) && !Operand) { Out << " void";