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:
Lioncash 2019-04-15 05:27:32 -04:00 committed by MerryMage
parent 699ad98b2a
commit 9309d95b17
2 changed files with 19 additions and 3 deletions

View file

@ -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);
}