Alias "const Op*" -> "Ref".

This commit is contained in:
ReinUsesLisp
2018-08-28 04:01:21 -03:00
parent 765c8833c4
commit 954774f9e8
8 changed files with 77 additions and 78 deletions

View File

@@ -9,15 +9,14 @@
namespace Sirit {
const Op* Module::Function(const Op* result_type, spv::FunctionControlMask function_control,
const Op* function_type) {
Ref Module::Function(Ref result_type, spv::FunctionControlMask function_control, Ref function_type) {
Op* op{new Op{spv::Op::OpFunction, bound++, result_type}};
op->Add(static_cast<u32>(function_control));
op->Add(function_type);
return AddCode(op);
}
const Op* Module::FunctionEnd() {
Ref Module::FunctionEnd() {
return AddCode(spv::Op::OpFunctionEnd);
}