Use SmallVector instead of std::vector for uniquing X86 disassembler operand sets. The number of operands is a small fixed size.
llvm-svn: 234465
This commit is contained in:
parent
34136874fd
commit
8b88cc284f
|
@ -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