mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-03 14:08:57 +00:00
Handle the odd case where we only have one instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
895dda6fb5
commit
168705049c
@ -403,6 +403,9 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
|
|||||||
<< " } else {\n"
|
<< " } else {\n"
|
||||||
<< Commands[0]
|
<< Commands[0]
|
||||||
<< " }\n\n";
|
<< " }\n\n";
|
||||||
|
} else if (Commands.size() == 1) {
|
||||||
|
// Emit a single possibility.
|
||||||
|
O << Commands[0] << "\n\n";
|
||||||
} else {
|
} else {
|
||||||
O << " switch ((Bits >> " << (BitsLeft+AsmStrBits) << ") & "
|
O << " switch ((Bits >> " << (BitsLeft+AsmStrBits) << ") & "
|
||||||
<< ((1 << NumBits)-1) << ") {\n"
|
<< ((1 << NumBits)-1) << ") {\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user