diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-08-14 11:17:38 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-08-14 11:17:38 +0000 |
| commit | 77af5fdb185e12c1e301a5fd28f99def0679f710 (patch) | |
| tree | 566110d05d90aba0a6a38980ae7f610c328c53eb /llvm/utils/TableGen | |
| parent | 2397a2b6e20224d31f27743722a8536a4d09c797 (diff) | |
| download | bcm5719-llvm-77af5fdb185e12c1e301a5fd28f99def0679f710.tar.gz bcm5719-llvm-77af5fdb185e12c1e301a5fd28f99def0679f710.zip | |
[TableGen] Pass string/vector types by const reference (PR37666). NFCI
llvm-svn: 339670
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/FastISelEmitter.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp index c0902e4c6f1..b1ae683891c 100644 --- a/llvm/utils/TableGen/FastISelEmitter.cpp +++ b/llvm/utils/TableGen/FastISelEmitter.cpp @@ -39,11 +39,12 @@ struct InstructionMemo { std::vector<std::string> PhysRegs; std::string PredicateCheck; - InstructionMemo(std::string Name, const CodeGenRegisterClass *RC, - std::string SubRegNo, std::vector<std::string> PhysRegs, - std::string PredicateCheck) - : Name(Name), RC(RC), SubRegNo(SubRegNo), PhysRegs(PhysRegs), - PredicateCheck(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) {} // Make sure we do not copy InstructionMemo. InstructionMemo(const InstructionMemo &Other) = delete; |

