/* This file is part of the sirit project. * Copyright (c) 2018 ReinUsesLisp * This software may be used and distributed according to the terms of the GNU * Lesser General Public License version 2.1 or any later version. */ #include "op.h" #include "sirit/sirit.h" #include #include namespace Sirit { Id Module::Name(Id target, const std::string& name) { auto op{std::make_unique(spv::Op::OpName)}; op->Add(target); op->Add(name); debug.push_back(std::move(op)); return target; } Id Module::OpString(const std::string& string) { auto op{std::make_unique(spv::Op::OpString, bound++)}; op->Add(string); return AddCode(std::move(op)); } } // namespace Sirit