mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 22:00:58 +00:00
[TableGen] Add some std::move to the PatternToMatch constructor.
The are two vectors passed by value to the constructor. We should be able to move them into the object. llvm-svn: 337114
This commit is contained in:
parent
7599dd7f50
commit
08fff11614
@ -1022,7 +1022,7 @@ public:
|
||||
std::vector<Record *> dstregs, int complexity,
|
||||
unsigned uid, unsigned setmode = 0)
|
||||
: SrcRecord(srcrecord), SrcPattern(src), DstPattern(dst),
|
||||
Predicates(preds), Dstregs(dstregs),
|
||||
Predicates(std::move(preds)), Dstregs(std::move(dstregs)),
|
||||
AddedComplexity(complexity), ID(uid), ForceMode(setmode) {}
|
||||
|
||||
Record *SrcRecord; // Originating Record for the pattern.
|
||||
|
Loading…
x
Reference in New Issue
Block a user