summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2018-05-17 21:33:12 +0100
committerGitHub <noreply@github.com>2018-05-17 21:33:12 +0100
commita825ddf466fc60561a727c2817cdc4a2ee8a260d (patch)
tree674074f568514108af1d50991a918e58e88794ed /Source/Core
parent7c9b0eb7cefaaca8f591b7e0d07b3233cf66c24c (diff)
parent1c63a48fab67386f828c039327bede7ece0667f6 (diff)
Merge pull request #6885 from lioncash/namespace
Common/CodeBlock: Namespace code under the Common namespace
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/Arm64Emitter.h2
-rw-r--r--Source/Core/Common/CodeBlock.h3
-rw-r--r--Source/Core/Common/x64Emitter.h2
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<ARM64XEmitter>
+class ARM64CodeBlock : public Common::CodeBlock<ARM64XEmitter>
{
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<XEmitter>
+class X64CodeBlock : public Common::CodeBlock<XEmitter>
{
private:
void PoisonMemory() override