[NFC][TableGen] emitGetOperandIdxName: Pass arg by const& (#164563)
Take `OperandNameToID` by const& to avoid copying
This commit is contained in:
parent
048070ba6f
commit
dec57c87f6
@ -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) "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user