Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 62fcc62

Browse files
committed
[TableGen] Pass string/vector types by const reference (PR37666). NFCI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339670 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 922ac36 commit 62fcc62

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

utils/TableGen/FastISelEmitter.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ struct InstructionMemo {
3939
std::vector<std::string> PhysRegs;
4040
std::string PredicateCheck;
4141

42-
InstructionMemo(std::string Name, const CodeGenRegisterClass *RC,
43-
std::string SubRegNo, std::vector<std::string> PhysRegs,
44-
std::string PredicateCheck)
45-
: Name(Name), RC(RC), SubRegNo(SubRegNo), PhysRegs(PhysRegs),
46-
PredicateCheck(PredicateCheck) {}
42+
InstructionMemo(const std::string &Name, const CodeGenRegisterClass *RC,
43+
const std::string &SubRegNo,
44+
const std::vector<std::string> &PhysRegs,
45+
const std::string &PredicateCheck)
46+
: Name(Name), RC(RC), SubRegNo(SubRegNo), PhysRegs(PhysRegs),
47+
PredicateCheck(PredicateCheck) {}
4748

4849
// Make sure we do not copy InstructionMemo.
4950
InstructionMemo(const InstructionMemo &Other) = delete;

0 commit comments

Comments
 (0)