diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-02-06 03:11:23 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:21 +0200 |
commit | 16cb00c521cae6e93ec49d10e15b575b7bc4857e (patch) | |
tree | 3b283895510af56fced7e62031c6beda999c0a1c /src/shader_recompiler/frontend/ir/function.h | |
parent | shader: Make typed IR (diff) | |
download | yuzu-16cb00c521cae6e93ec49d10e15b575b7bc4857e.tar yuzu-16cb00c521cae6e93ec49d10e15b575b7bc4857e.tar.gz yuzu-16cb00c521cae6e93ec49d10e15b575b7bc4857e.tar.bz2 yuzu-16cb00c521cae6e93ec49d10e15b575b7bc4857e.tar.lz yuzu-16cb00c521cae6e93ec49d10e15b575b7bc4857e.tar.xz yuzu-16cb00c521cae6e93ec49d10e15b575b7bc4857e.tar.zst yuzu-16cb00c521cae6e93ec49d10e15b575b7bc4857e.zip |
Diffstat (limited to 'src/shader_recompiler/frontend/ir/function.h')
-rw-r--r-- | src/shader_recompiler/frontend/ir/function.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/shader_recompiler/frontend/ir/function.h b/src/shader_recompiler/frontend/ir/function.h index 2d4dc5b98..bba7d1d39 100644 --- a/src/shader_recompiler/frontend/ir/function.h +++ b/src/shader_recompiler/frontend/ir/function.h @@ -4,22 +4,14 @@ #pragma once -#include <memory> -#include <vector> +#include <boost/container/small_vector.hpp> #include "shader_recompiler/frontend/ir/basic_block.h" namespace Shader::IR { struct Function { - struct InplaceDelete { - void operator()(IR::Block* block) const noexcept { - std::destroy_at(block); - } - }; - using UniqueBlock = std::unique_ptr<IR::Block, InplaceDelete>; - - std::vector<UniqueBlock> blocks; + boost::container::small_vector<Block*, 16> blocks; }; } // namespace Shader::IR |