diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-09-11 04:19:21 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-09-11 04:19:21 +0000 |
commit | 9e6dc8b9e70c98fc269303a5a94f0476942fb35a (patch) | |
tree | 97a243479cfd982f200e903231c6c8c88d8e6ac4 /utils/TableGen/X86DisassemblerTables.cpp | |
parent | 0dd9b61f9f0dad1b1b9c4e5a54fe826e18fae787 (diff) |
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
Diffstat (limited to 'utils/TableGen/X86DisassemblerTables.cpp')
-rw-r--r-- | utils/TableGen/X86DisassemblerTables.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/X86DisassemblerTables.cpp b/utils/TableGen/X86DisassemblerTables.cpp index f3bd373708..8526621599 100644 --- a/utils/TableGen/X86DisassemblerTables.cpp +++ b/utils/TableGen/X86DisassemblerTables.cpp @@ -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; } |