From 2bafba1a174e99308e7487f39db0aad0858400c3 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Fri, 31 Aug 2018 03:41:30 -0300 Subject: [PATCH] Rename Assembly -> Assemble --- README.md | 2 +- include/sirit/sirit.h | 2 +- src/sirit.cpp | 2 +- tests/main.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2773080..ce0ff67 100644 --- a/README.md +++ b/README.md @@ -54,5 +54,5 @@ MyModule module; module.Generate(); module.Optimize(2); -std::vector code{module.Assembly()}; +std::vector code{module.Assemble()}; ``` diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h index f06222c..1e6da4d 100644 --- a/include/sirit/sirit.h +++ b/include/sirit/sirit.h @@ -33,7 +33,7 @@ public: * It can be called multiple times but it's recommended to copy code externally. * @return A stream of bytes representing a SPIR-V module. */ - std::vector Assembly() const; + std::vector Assemble() const; /** * Optimizes module's IR. diff --git a/src/sirit.cpp b/src/sirit.cpp index 6729085..4eeb411 100644 --- a/src/sirit.cpp +++ b/src/sirit.cpp @@ -24,7 +24,7 @@ Module::Module() {} Module::~Module() = default; -std::vector Module::Assembly() const { +std::vector Module::Assemble() const { std::vector bytes; Stream stream{bytes}; diff --git a/tests/main.cpp b/tests/main.cpp index b853d07..dfecb76 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -66,7 +66,7 @@ int main(int argc, char** argv) { module.Generate(); module.Optimize(2); - std::vector code{module.Assembly()}; + std::vector code{module.Assemble()}; FILE* file = fopen("sirit.spv", "wb"); fwrite(code.data(), 1, code.size(), file);