Merge pull request #4675 from lioncash/jitil

JitILBase: Make the IRBuilder protected
This commit is contained in:
Matthew Parlane 2017-01-18 13:10:31 +13:00 committed by GitHub
commit f785d7f869
1 changed files with 6 additions and 7 deletions

View File

@ -12,16 +12,9 @@
class JitILBase : public Jitx86Base
{
protected:
// The default code buffer. We keep it around to not have to alloc/dealloc a
// large chunk of memory for each recompiled block.
PPCAnalyst::CodeBuffer code_buffer;
public:
JitILBase() : code_buffer(32000) {}
~JitILBase() {}
IREmitter::IRBuilder ibuild;
virtual void Jit(u32 em_address) = 0;
virtual const CommonAsmRoutinesBase* GetAsmRoutines() = 0;
@ -128,4 +121,10 @@ public:
void subfcx(UGeckoInstruction inst);
void subfx(UGeckoInstruction inst);
void subfex(UGeckoInstruction inst);
protected:
// The default code buffer. We keep it around to not have to alloc/dealloc a
// large chunk of memory for each recompiled block.
PPCAnalyst::CodeBuffer code_buffer;
IREmitter::IRBuilder ibuild;
};