aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/insts/debug.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2018-08-31 04:55:01 -0300
committerReinUsesLisp <[email protected]>2018-08-31 04:55:01 -0300
commit45555c0e570b24409e19c9cb0cbfb0866f897d3d (patch)
tree83ea6402eaa8d0c5f460b129baa462c4545ee224 /src/insts/debug.cpp
parent4fe98c2902d514cd2ed220301618b468e754bcc7 (diff)
downloadsirit-45555c0e570b24409e19c9cb0cbfb0866f897d3d.tar.gz
sirit-45555c0e570b24409e19c9cb0cbfb0866f897d3d.zip
OpName returns its target
Diffstat (limited to 'src/insts/debug.cpp')
-rw-r--r--src/insts/debug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/insts/debug.cpp b/src/insts/debug.cpp
index e12b61c..5e7ea0f 100644
--- a/src/insts/debug.cpp
+++ b/src/insts/debug.cpp
@@ -9,11 +9,12 @@
namespace Sirit {
-void Module::Name(Ref target, const std::string& name) {
+Ref Module::Name(Ref target, const std::string& name) {
Op* op{new Op(spv::Op::OpName)};
op->Add(target);
op->Add(name);
debug.push_back(std::unique_ptr<Op>(op));
+ return target;
}
} // namespace Sirit