Skip to content

Commit bf7d3e6

Browse files
Automerge: [NFC][TableGen] emitGetOperandIdxName: Pass arg by const& (#164563)
Take `OperandNameToID` by const& to avoid copying
2 parents 932b669 + dec57c8 commit bf7d3e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/InstrInfoEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ emitGetNamedOperandIdx(raw_ostream &OS,
285285

286286
static void
287287
emitGetOperandIdxName(raw_ostream &OS,
288-
MapVector<StringRef, unsigned> OperandNameToID,
288+
const MapVector<StringRef, unsigned> &OperandNameToID,
289289
const MapVector<SmallVector<int>, unsigned> &OperandMap,
290290
unsigned MaxNumOperands, unsigned NumOperandNames) {
291291
OS << "LLVM_READONLY OpName getOperandIdxName(uint16_t Opcode, int16_t Idx) "

0 commit comments

Comments
 (0)