mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-02-19 08:43:01 +00:00
Add OpString
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user