Skip to content

Commit

Permalink
Merge pull request #6885 from lioncash/namespace
Browse files Browse the repository at this point in the history
Common/CodeBlock: Namespace code under the Common namespace
  • Loading branch information
Tilka committed May 17, 2018
2 parents 7c9b0eb + 1c63a48 commit a825ddf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Common/Arm64Emitter.h
Expand Up @@ -1126,7 +1126,7 @@ class ARM64FloatEmitter
void UXTL(u8 src_size, ARM64Reg Rd, ARM64Reg Rn, bool upper); void UXTL(u8 src_size, ARM64Reg Rd, ARM64Reg Rn, bool upper);
}; };


class ARM64CodeBlock : public CodeBlock<ARM64XEmitter> class ARM64CodeBlock : public Common::CodeBlock<ARM64XEmitter>
{ {
private: private:
void PoisonMemory() override void PoisonMemory() override
Expand Down
3 changes: 3 additions & 0 deletions Source/Core/Common/CodeBlock.h
Expand Up @@ -11,6 +11,8 @@
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/MemoryUtil.h" #include "Common/MemoryUtil.h"


namespace Common
{
// Everything that needs to generate code should inherit from this. // Everything that needs to generate code should inherit from this.
// You get memory management for free, plus, you can use all emitter functions without // You get memory management for free, plus, you can use all emitter functions without
// having to prefix them with gen-> or something similar. // having to prefix them with gen-> or something similar.
Expand Down Expand Up @@ -116,3 +118,4 @@ class CodeBlock : public T
m_children.emplace_back(child); m_children.emplace_back(child);
} }
}; };
} // namespace Common
2 changes: 1 addition & 1 deletion Source/Core/Common/x64Emitter.h
Expand Up @@ -1155,7 +1155,7 @@ class XEmitter
} }
}; // class XEmitter }; // class XEmitter


class X64CodeBlock : public CodeBlock<XEmitter> class X64CodeBlock : public Common::CodeBlock<XEmitter>
{ {
private: private:
void PoisonMemory() override void PoisonMemory() override
Expand Down

0 comments on commit a825ddf

Please sign in to comment.