mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-26 17:24:57 +01:00
ir/block: Default ctor and dtor in the cpp file
Prevents potentially inlining allocation code everywhere. While we're at it, also explicitly delete/default the copy/move constructor/assignment operators to be explicit about them.
This commit is contained in:
parent
699ad98b2a
commit
9309d95b17
2 changed files with 19 additions and 3 deletions
|
|
@ -20,6 +20,16 @@
|
|||
|
||||
namespace Dynarmic::IR {
|
||||
|
||||
Block::Block(const LocationDescriptor& location)
|
||||
: location{location}, end_location{location},
|
||||
instruction_alloc_pool{std::make_unique<Common::Pool>(sizeof(Inst), 4096)} {}
|
||||
|
||||
Block::~Block() = default;
|
||||
|
||||
Block::Block(Block&&) = default;
|
||||
|
||||
Block& Block::operator=(Block&&) = default;
|
||||
|
||||
void Block::AppendNewInst(Opcode opcode, std::initializer_list<IR::Value> args) {
|
||||
PrependNewInst(end(), opcode, args);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue