Add OpString

This commit is contained in:
ReinUsesLisp 2018-11-03 01:14:29 -03:00
parent d4c95981b5
commit 96e8290eef
2 changed files with 9 additions and 0 deletions

View file

@ -19,4 +19,10 @@ Id Module::Name(Id target, const std::string& name) {
return target;
}
Id Module::OpString(const std::string& string) {
auto op{std::make_unique<Op>(spv::Op::OpString, bound++)};
op->Add(string);
return AddCode(std::move(op));
}
} // namespace Sirit