mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 22:45:05 +00:00
fix printing of function-local metadata to print all the operands of the
mdnode, not just operand 0 over and over. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a3d3a54eb
commit
7d054b385f
@ -1208,9 +1208,9 @@ static void WriteAsOperandInternal(raw_ostream &Out, const Value *V,
|
|||||||
if (!Val)
|
if (!Val)
|
||||||
Out << "null";
|
Out << "null";
|
||||||
else {
|
else {
|
||||||
TypePrinter->print(N->getOperand(0)->getType(), Out);
|
TypePrinter->print(N->getOperand(mi)->getType(), Out);
|
||||||
Out << ' ';
|
Out << ' ';
|
||||||
WriteAsOperandInternal(Out, N->getOperand(0), TypePrinter, Machine);
|
WriteAsOperandInternal(Out, N->getOperand(mi), TypePrinter, Machine);
|
||||||
}
|
}
|
||||||
if (mi + 1 != me)
|
if (mi + 1 != me)
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user