reg_alloc: std::move RegAlloc's function argument

This commit is contained in:
Lioncash 2018-01-26 21:35:42 -05:00 committed by MerryMage
parent ed561d6653
commit b9ce660113

View file

@ -8,6 +8,7 @@
#include <array> #include <array>
#include <functional> #include <functional>
#include <utility>
#include <vector> #include <vector>
#include <boost/optional.hpp> #include <boost/optional.hpp>
@ -91,7 +92,7 @@ private:
class RegAlloc final { class RegAlloc final {
public: public:
explicit RegAlloc(BlockOfCode* code, size_t num_spills, std::function<Xbyak::Address(HostLoc)> spill_to_addr) explicit RegAlloc(BlockOfCode* code, size_t num_spills, std::function<Xbyak::Address(HostLoc)> spill_to_addr)
: hostloc_info(NonSpillHostLocCount + num_spills), code(code), spill_to_addr(spill_to_addr) {} : hostloc_info(NonSpillHostLocCount + num_spills), code(code), spill_to_addr(std::move(spill_to_addr)) {}
std::array<Argument, 3> GetArgumentInfo(IR::Inst* inst); std::array<Argument, 3> GetArgumentInfo(IR::Inst* inst);