mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Change unsigned to a uint16_t in static disassembler tables to reduce the table size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0dd9b61f9f
commit
9e6dc8b9e7
@ -78,7 +78,7 @@
|
||||
uint16_t operands;
|
||||
|
||||
#define INSTRUCTION_IDS \
|
||||
unsigned instructionIDs;
|
||||
uint16_t instructionIDs;
|
||||
|
||||
#include "X86DisassemblerDecoderCommon.h"
|
||||
|
||||
|
@ -24,7 +24,7 @@ extern "C" {
|
||||
uint16_t operands;
|
||||
|
||||
#define INSTRUCTION_IDS \
|
||||
unsigned instructionIDs;
|
||||
uint16_t instructionIDs;
|
||||
|
||||
#include "X86DisassemblerDecoderCommon.h"
|
||||
|
||||
|
@ -366,6 +366,10 @@ void DisassemblerTables::emitModRMDecision(raw_ostream &o1, raw_ostream &o2,
|
||||
break;
|
||||
}
|
||||
|
||||
// We assume that the index can fit into uint16_t.
|
||||
assert(sEntryNumber < 65536U &&
|
||||
"Index into ModRMDecision is too large for uint16_t!");
|
||||
|
||||
++sTableNumber;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user