mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Use SmallVector instead of std::vector for uniquing X86 disassembler operand sets. The number of operands is a small fixed size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
13154acf19
commit
b82d5479b9
@ -597,7 +597,8 @@ void DisassemblerTables::emitInstructionInfo(raw_ostream &o,
|
||||
o << "static const struct OperandSpecifier x86OperandSets[]["
|
||||
<< X86_MAX_OPERANDS << "] = {\n";
|
||||
|
||||
typedef std::vector<std::pair<OperandEncoding, OperandType> > OperandListTy;
|
||||
typedef SmallVector<std::pair<OperandEncoding, OperandType>,
|
||||
X86_MAX_OPERANDS> OperandListTy;
|
||||
std::map<OperandListTy, unsigned> OperandSets;
|
||||
|
||||
unsigned OperandSetNum = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user