1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

print getresult operand and its type directly.

llvm-svn: 47514
This commit is contained in:
Devang Patel 2008-02-23 01:04:26 +00:00
parent 7c3a8d0056
commit 03a99197aa

View File

@ -1292,17 +1292,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
writeOperand(I.getOperand(op+1), false); Out << " ]";
}
} else if (const GetResultInst *GRI = dyn_cast<GetResultInst>(&I)) {
const StructType *STy = cast<StructType>(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<ReturnInst>(I) && !Operand) {
Out << " void";