mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-02 13:12:09 +00:00
Add a space to the PHI node output code to make it look nicer
llvm-svn: 53
This commit is contained in:
parent
b20a15d334
commit
4b94e23bd0
@ -182,10 +182,10 @@ bool AssemblyWriter::processInstruction(const Instruction *I) {
|
|||||||
Out << " " << Operand->getType();
|
Out << " " << Operand->getType();
|
||||||
|
|
||||||
Out << " ["; writeOperand(Operand, false); Out << ",";
|
Out << " ["; writeOperand(Operand, false); Out << ",";
|
||||||
writeOperand(I->getOperand(1), false); Out << "]";
|
writeOperand(I->getOperand(1), false); Out << " ]";
|
||||||
for (unsigned op = 2; (Operand = I->getOperand(op)); op += 2) {
|
for (unsigned op = 2; (Operand = I->getOperand(op)); op += 2) {
|
||||||
Out << ", ["; writeOperand(Operand, false); Out << ",";
|
Out << ", ["; writeOperand(Operand, false); Out << ",";
|
||||||
writeOperand(I->getOperand(op+1), false); Out << "]";
|
writeOperand(I->getOperand(op+1), false); Out << " ]";
|
||||||
}
|
}
|
||||||
} else if (I->getInstType() == Instruction::Ret && !Operand) {
|
} else if (I->getInstType() == Instruction::Ret && !Operand) {
|
||||||
Out << " void";
|
Out << " void";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user