mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 22:58:50 +00:00
print getresult operand and its type directly.
llvm-svn: 47514
This commit is contained in:
parent
7c3a8d0056
commit
03a99197aa
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user