diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-08-28 11:10:27 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-08-28 11:10:27 +0000 |
| commit | b7e10182cec42162e22bc483931be689b50371f4 (patch) | |
| tree | 2d256c48f683f9d50a043ef5b3a30c5917f26cbd /llvm/utils/TableGen/FastISelEmitter.cpp | |
| parent | 484bd13e2d40c780ddba2362ca5b43f65de7fa3f (diff) | |
| download | bcm5719-llvm-b7e10182cec42162e22bc483931be689b50371f4.tar.gz bcm5719-llvm-b7e10182cec42162e22bc483931be689b50371f4.zip | |
[TableGen] Use std::move where possible in InstructionMemo constructor. NFCI.
Requested in post-commit review for rL339670
llvm-svn: 340819
Diffstat (limited to 'llvm/utils/TableGen/FastISelEmitter.cpp')
| -rw-r--r-- | llvm/utils/TableGen/FastISelEmitter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp index b1ae683891c..9d18623b107 100644 --- a/llvm/utils/TableGen/FastISelEmitter.cpp +++ b/llvm/utils/TableGen/FastISelEmitter.cpp @@ -39,12 +39,12 @@ struct InstructionMemo { std::vector<std::string> PhysRegs; std::string PredicateCheck; - InstructionMemo(const std::string &Name, const CodeGenRegisterClass *RC, - const std::string &SubRegNo, - const std::vector<std::string> &PhysRegs, - const std::string &PredicateCheck) - : Name(Name), RC(RC), SubRegNo(SubRegNo), PhysRegs(PhysRegs), - PredicateCheck(PredicateCheck) {} + InstructionMemo(StringRef Name, const CodeGenRegisterClass *RC, + std::string SubRegNo, std::vector<std::string> PhysRegs, + std::string PredicateCheck) + : Name(Name), RC(RC), SubRegNo(std::move(SubRegNo)), + PhysRegs(std::move(PhysRegs)), + PredicateCheck(std::move(PredicateCheck)) {} // Make sure we do not copy InstructionMemo. InstructionMemo(const InstructionMemo &Other) = delete; |

