mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
add enough support for indirect branch for the feature test to pass
(assembler,asmprinter, bc reader+writer) and document it. Codegen currently aborts on it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1832,7 +1832,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
|
||||
writeOperand(BI.getSuccessor(1), true);
|
||||
|
||||
} else if (isa<SwitchInst>(I)) {
|
||||
// Special case switch statement to get formatting nice and correct...
|
||||
// Special case switch instruction to get formatting nice and correct.
|
||||
Out << ' ';
|
||||
writeOperand(Operand , true);
|
||||
Out << ", ";
|
||||
@@ -1846,6 +1846,19 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
|
||||
writeOperand(I.getOperand(op+1), true);
|
||||
}
|
||||
Out << "\n ]";
|
||||
} else if (isa<IndBrInst>(I)) {
|
||||
// Special case indbr instruction to get formatting nice and correct.
|
||||
Out << ' ';
|
||||
writeOperand(Operand, true);
|
||||
Out << ", ";
|
||||
Out << " [";
|
||||
|
||||
for (unsigned i = 1, e = I.getNumOperands(); i != e; ++i) {
|
||||
if (i != 1)
|
||||
Out << ", ";
|
||||
writeOperand(I.getOperand(i), true);
|
||||
}
|
||||
Out << ']';
|
||||
} else if (isa<PHINode>(I)) {
|
||||
Out << ' ';
|
||||
TypePrinter.print(I.getType(), Out);
|
||||
|
Reference in New Issue
Block a user