From e924814d62587f41194562ec07db96e8e89df2c5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 17 Jan 2017 14:45:40 -0500 Subject: [PATCH 1/2] JitILBase: Move protected members below public --- Source/Core/Core/PowerPC/JitILCommon/JitILBase.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h b/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h index 228ccd269d..b5656d874b 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h @@ -12,11 +12,6 @@ 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() {} @@ -128,4 +123,9 @@ 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; }; From 1516c22a22e51f49c27642110042e2303177416e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 17 Jan 2017 14:50:07 -0500 Subject: [PATCH 2/2] JitILBase: Make the IRBuilder instance protected There's no need to make it public. --- Source/Core/Core/PowerPC/JitILCommon/JitILBase.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h b/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h index b5656d874b..bd38bc4b8e 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h +++ b/Source/Core/Core/PowerPC/JitILCommon/JitILBase.h @@ -15,8 +15,6 @@ class JitILBase : public Jitx86Base public: JitILBase() : code_buffer(32000) {} ~JitILBase() {} - IREmitter::IRBuilder ibuild; - virtual void Jit(u32 em_address) = 0; virtual const CommonAsmRoutinesBase* GetAsmRoutines() = 0; @@ -128,4 +126,5 @@ 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; };