[NFC][TableGen] emitGetOperandIdxName: Pass arg by const& (#164563)

Take `OperandNameToID` by const& to avoid copying
This commit is contained in:
Abhishek Kaushik 2025-10-22 13:03:20 +05:30 committed by GitHub
parent 048070ba6f
commit dec57c87f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -285,7 +285,7 @@ emitGetNamedOperandIdx(raw_ostream &OS,
static void
emitGetOperandIdxName(raw_ostream &OS,
MapVector<StringRef, unsigned> OperandNameToID,
const MapVector<StringRef, unsigned> &OperandNameToID,
const MapVector<SmallVector<int>, unsigned> &OperandMap,
unsigned MaxNumOperands, unsigned NumOperandNames) {
OS << "LLVM_READONLY OpName getOperandIdxName(uint16_t Opcode, int16_t Idx) "