aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/X86DisassemblerTables.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2025-01-16 13:20:41 +0000
committerGitHub <noreply@github.com>2025-01-16 13:20:41 +0000
commit4e8c9d28132039a98feb97cec2759cddeb37d934 (patch)
treef74b9dabf1bb71e135e432bf34d6eea33b175ed9 /llvm/utils/TableGen/X86DisassemblerTables.cpp
parent4481030a0388a98d1d426d86bed0ac012dfe3b6b (diff)
downloadllvm-4e8c9d28132039a98feb97cec2759cddeb37d934.zip
llvm-4e8c9d28132039a98feb97cec2759cddeb37d934.tar.gz
llvm-4e8c9d28132039a98feb97cec2759cddeb37d934.tar.bz2
[TableGen] Use std::pair instead of std::make_pair. NFC. (#123174)
Also use brace initialization and emplace to avoid explicitly constructing std::pair, and the same for std::tuple.
Diffstat (limited to 'llvm/utils/TableGen/X86DisassemblerTables.cpp')
-rw-r--r--llvm/utils/TableGen/X86DisassemblerTables.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/X86DisassemblerTables.cpp b/llvm/utils/TableGen/X86DisassemblerTables.cpp
index 294923b..5e7983a 100644
--- a/llvm/utils/TableGen/X86DisassemblerTables.cpp
+++ b/llvm/utils/TableGen/X86DisassemblerTables.cpp
@@ -874,7 +874,7 @@ void DisassemblerTables::emitInstructionInfo(raw_ostream &o,
for (auto Operand : InstructionSpecifiers[Index].operands) {
OperandEncoding Encoding = (OperandEncoding)Operand.encoding;
OperandType Type = (OperandType)Operand.type;
- OperandList.push_back(std::pair(Encoding, Type));
+ OperandList.emplace_back(Encoding, Type);
}
unsigned &N = OperandSets[OperandList];
if (N != 0)
@@ -906,7 +906,7 @@ void DisassemblerTables::emitInstructionInfo(raw_ostream &o,
for (auto Operand : InstructionSpecifiers[index].operands) {
OperandEncoding Encoding = (OperandEncoding)Operand.encoding;
OperandType Type = (OperandType)Operand.type;
- OperandList.push_back(std::pair(Encoding, Type));
+ OperandList.emplace_back(Encoding, Type);
}
o.indent(i * 2) << (OperandSets[OperandList] - 1) << ",\n";