mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Be a bit more tolerant of broken code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10050 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
825b02d5ee
commit
41495a21f9
@ -912,15 +912,15 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
|
|||||||
writeOperand(AI->getArraySize(), true);
|
writeOperand(AI->getArraySize(), true);
|
||||||
}
|
}
|
||||||
} else if (isa<CastInst>(I)) {
|
} else if (isa<CastInst>(I)) {
|
||||||
writeOperand(Operand, true);
|
if (Operand) writeOperand(Operand, true); // Work with broken code
|
||||||
Out << " to ";
|
Out << " to ";
|
||||||
printType(I.getType());
|
printType(I.getType());
|
||||||
} else if (isa<VAArgInst>(I)) {
|
} else if (isa<VAArgInst>(I)) {
|
||||||
writeOperand(Operand, true);
|
if (Operand) writeOperand(Operand, true); // Work with broken code
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
printType(I.getType());
|
printType(I.getType());
|
||||||
} else if (const VANextInst *VAN = dyn_cast<VANextInst>(&I)) {
|
} else if (const VANextInst *VAN = dyn_cast<VANextInst>(&I)) {
|
||||||
writeOperand(Operand, true);
|
if (Operand) writeOperand(Operand, true); // Work with broken code
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
printType(VAN->getArgType());
|
printType(VAN->getArgType());
|
||||||
} else if (Operand) { // Print the normal way...
|
} else if (Operand) { // Print the normal way...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user