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:
Craig Topper 2015-04-09 04:08:48 +00:00
parent 34136874fd
commit 8b88cc284f
1 changed files with 2 additions and 1 deletions

View File

@ -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;