diff options
author | ReinUsesLisp <[email protected]> | 2018-11-01 00:02:45 -0300 |
---|---|---|
committer | ReinUsesLisp <[email protected]> | 2018-11-01 00:02:45 -0300 |
commit | f3a63aa55f4989d6806b2faa8086bd2f23752b01 (patch) | |
tree | 0dee38017afb1081ff2055755c4f7b116d103786 /include | |
parent | 63ca1b5243f5e81697ce3fa10a9820f7dce04ebe (diff) | |
download | sirit-f3a63aa55f4989d6806b2faa8086bd2f23752b01.tar.gz sirit-f3a63aa55f4989d6806b2faa8086bd2f23752b01.zip |
Use unique_ptr for instruction implementations
Diffstat (limited to 'include')
-rw-r--r-- | include/sirit/sirit.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h index 2fa1d24..21cde3d 100644 --- a/include/sirit/sirit.h +++ b/include/sirit/sirit.h @@ -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}; |