From b82d5479b925dd1cb7a46b6631edccfd2dfaaf55 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 9 Apr 2015 04:08:48 +0000 Subject: [PATCH] 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 --- utils/TableGen/X86DisassemblerTables.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/TableGen/X86DisassemblerTables.cpp b/utils/TableGen/X86DisassemblerTables.cpp index bc17b9b9785..0f3ea9a019d 100644 --- a/utils/TableGen/X86DisassemblerTables.cpp +++ b/utils/TableGen/X86DisassemblerTables.cpp @@ -597,7 +597,8 @@ void DisassemblerTables::emitInstructionInfo(raw_ostream &o, o << "static const struct OperandSpecifier x86OperandSets[][" << X86_MAX_OPERANDS << "] = {\n"; - typedef std::vector > OperandListTy; + typedef SmallVector, + X86_MAX_OPERANDS> OperandListTy; std::map OperandSets; unsigned OperandSetNum = 0; -- 2.34.1