Use unique_ptr for instruction implementations

This commit is contained in:
ReinUsesLisp 2018-11-01 00:02:45 -03:00
parent 63ca1b5243
commit f3a63aa55f
9 changed files with 77 additions and 89 deletions

View file

@ -233,13 +233,13 @@ class Module {
Id OpUndef(Id result_type);
private:
Id AddCode(Op* op);
Id AddCode(std::unique_ptr<Op> op);
Id AddCode(spv::Op opcode, std::optional<std::uint32_t> id = {});
Id AddDeclaration(Op* op);
Id AddDeclaration(std::unique_ptr<Op> op);
Id AddAnnotation(Op* op);
Id AddAnnotation(std::unique_ptr<Op> op);
std::uint32_t bound{1};