forked from OSchip/llvm-project
[TableGen] Use std::move where possible in InstructionMemo constructor. NFCI.
Requested in post-commit review for rL339670 llvm-svn: 340819
This commit is contained in:
parent
484bd13e2d
commit
b7e10182ce
|
@ -39,12 +39,12 @@ struct InstructionMemo {
|
||||||
std::vector<std::string> PhysRegs;
|
std::vector<std::string> PhysRegs;
|
||||||
std::string PredicateCheck;
|
std::string PredicateCheck;
|
||||||
|
|
||||||
InstructionMemo(const std::string &Name, const CodeGenRegisterClass *RC,
|
InstructionMemo(StringRef Name, const CodeGenRegisterClass *RC,
|
||||||
const std::string &SubRegNo,
|
std::string SubRegNo, std::vector<std::string> PhysRegs,
|
||||||
const std::vector<std::string> &PhysRegs,
|
std::string PredicateCheck)
|
||||||
const std::string &PredicateCheck)
|
: Name(Name), RC(RC), SubRegNo(std::move(SubRegNo)),
|
||||||
: Name(Name), RC(RC), SubRegNo(SubRegNo), PhysRegs(PhysRegs),
|
PhysRegs(std::move(PhysRegs)),
|
||||||
PredicateCheck(PredicateCheck) {}
|
PredicateCheck(std::move(PredicateCheck)) {}
|
||||||
|
|
||||||
// Make sure we do not copy InstructionMemo.
|
// Make sure we do not copy InstructionMemo.
|
||||||
InstructionMemo(const InstructionMemo &Other) = delete;
|
InstructionMemo(const InstructionMemo &Other) = delete;
|
||||||
|
|
Loading…
Reference in New Issue