From ff441efc268bb0b042b822d74d73424dedd80625 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 19 Mar 2017 12:37:25 +0000 Subject: EmuCodeBlock: Use ConstantPool --- Source/Core/Common/CodeBlock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/CodeBlock.h') diff --git a/Source/Core/Common/CodeBlock.h b/Source/Core/Common/CodeBlock.h index 7bd554b9aa..28a4919e66 100644 --- a/Source/Core/Common/CodeBlock.h +++ b/Source/Core/Common/CodeBlock.h @@ -42,7 +42,7 @@ public: } // Call this before you generate any code. - void AllocCodeSpace(size_t size, bool need_low = true) + virtual void AllocCodeSpace(size_t size, bool need_low = true) { region_size = size; region = static_cast(Common::AllocateExecutableMemory(region_size, need_low)); @@ -51,7 +51,7 @@ public: // Always clear code space with breakpoints, so that if someone accidentally executes // uninitialized, it just breaks into the debugger. - void ClearCodeSpace() + virtual void ClearCodeSpace() { PoisonMemory(); ResetCodePtr(); -- cgit v1.2.3