mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-29 02:36:56 +01:00
Add OpString
This commit is contained in:
parent
d4c95981b5
commit
96e8290eef
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue