mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-25 00:36:36 +01:00
Rename Ref alias to Id
This commit is contained in:
parent
b8188f5ec4
commit
63ca1b5243
12 changed files with 121 additions and 121 deletions
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
namespace Sirit {
|
||||
|
||||
Op::Op(spv::Op opcode, std::optional<u32> id, Ref result_type)
|
||||
Op::Op(spv::Op opcode, std::optional<u32> id, Id result_type)
|
||||
: opcode(opcode), id(id), result_type(result_type) {
|
||||
operand_type = OperandType::Op;
|
||||
}
|
||||
|
|
@ -106,8 +106,8 @@ void Op::Add(u32 integer) { Sink(LiteralNumber::Create<u32>(integer)); }
|
|||
|
||||
void Op::Add(const std::string& string) { Sink(new LiteralString(string)); }
|
||||
|
||||
void Op::Add(const std::vector<Ref>& ids) {
|
||||
for (Ref op : ids) {
|
||||
void Op::Add(const std::vector<Id>& ids) {
|
||||
for (Id op : ids) {
|
||||
Add(op);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue