From 1c63a48fab67386f828c039327bede7ece0667f6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 17 May 2018 15:56:15 -0400 Subject: [PATCH] Common/CodeBlock: Namespace code under the Common namespace Brings more common code under the Common namespace. --- Source/Core/Common/Arm64Emitter.h | 2 +- Source/Core/Common/CodeBlock.h | 3 +++ Source/Core/Common/x64Emitter.h | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/Arm64Emitter.h b/Source/Core/Common/Arm64Emitter.h index 22d27284d5..29df028e36 100644 --- a/Source/Core/Common/Arm64Emitter.h +++ b/Source/Core/Common/Arm64Emitter.h @@ -1126,7 +1126,7 @@ private: void UXTL(u8 src_size, ARM64Reg Rd, ARM64Reg Rn, bool upper); }; -class ARM64CodeBlock : public CodeBlock +class ARM64CodeBlock : public Common::CodeBlock { private: void PoisonMemory() override diff --git a/Source/Core/Common/CodeBlock.h b/Source/Core/Common/CodeBlock.h index 97a2c06ad0..19fc6be433 100644 --- a/Source/Core/Common/CodeBlock.h +++ b/Source/Core/Common/CodeBlock.h @@ -11,6 +11,8 @@ #include "Common/CommonTypes.h" #include "Common/MemoryUtil.h" +namespace Common +{ // Everything that needs to generate code should inherit from this. // You get memory management for free, plus, you can use all emitter functions without // having to prefix them with gen-> or something similar. @@ -116,3 +118,4 @@ public: m_children.emplace_back(child); } }; +} // namespace Common diff --git a/Source/Core/Common/x64Emitter.h b/Source/Core/Common/x64Emitter.h index bd5614c812..6916883d89 100644 --- a/Source/Core/Common/x64Emitter.h +++ b/Source/Core/Common/x64Emitter.h @@ -1155,7 +1155,7 @@ public: } }; // class XEmitter -class X64CodeBlock : public CodeBlock +class X64CodeBlock : public Common::CodeBlock { private: void PoisonMemory() override