From 208be26bb4290adbfc1f799f0c3ca6e95cd7d734 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 27 Aug 2018 09:42:56 -0400 Subject: Arm64Emitter: Make the Align* functions return a non-const data pointer Similar in nature to e28d06353947f65fa8218871d5a488f583ec69ab in which this same change was applied to the x64 emitter. There's no real requirement to make this const, and this should also be decided by the calling code, considering we had places that would simply cast away the const and carry on --- Source/Core/Common/Arm64Emitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/Arm64Emitter.cpp') diff --git a/Source/Core/Common/Arm64Emitter.cpp b/Source/Core/Common/Arm64Emitter.cpp index 124ae218a2..2864b2fc38 100644 --- a/Source/Core/Common/Arm64Emitter.cpp +++ b/Source/Core/Common/Arm64Emitter.cpp @@ -328,7 +328,7 @@ void ARM64XEmitter::ReserveCodeSpace(u32 bytes) BRK(0); } -const u8* ARM64XEmitter::AlignCode16() +u8* ARM64XEmitter::AlignCode16() { int c = int((u64)m_code & 15); if (c) @@ -336,7 +336,7 @@ const u8* ARM64XEmitter::AlignCode16() return m_code; } -const u8* ARM64XEmitter::AlignCodePage() +u8* ARM64XEmitter::AlignCodePage() { int c = int((u64)m_code & 4095); if (c) -- cgit v1.2.3