diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h index 272362c..fe22c4e 100644 --- a/include/sirit/sirit.h +++ b/include/sirit/sirit.h @@ -192,7 +192,7 @@ class Module { /// Assign a name string to a reference. /// @return target - Ref OpName(Ref target, const std::string& name); + Ref Name(Ref target, const std::string& name); // Memory diff --git a/src/insts/debug.cpp b/src/insts/debug.cpp index 26b1f2a..3822dcc 100644 --- a/src/insts/debug.cpp +++ b/src/insts/debug.cpp @@ -9,7 +9,7 @@ namespace Sirit { -Ref Module::OpName(Ref target, const std::string& name) { +Ref Module::Name(Ref target, const std::string& name) { auto op{new Op(spv::Op::OpName)}; op->Add(target); op->Add(name);