From 57545d1c537a891958c0642d9b19cad57d95b874 Mon Sep 17 00:00:00 2001 From: tevador Date: Tue, 19 Nov 2019 23:17:55 +0100 Subject: [PATCH] Fix inconsistent class/struct usage --- src/allocator.cpp | 2 +- src/jit_compiler_a64.hpp | 2 +- src/jit_compiler_fallback.hpp | 2 +- src/jit_compiler_x86.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/allocator.cpp b/src/allocator.cpp index 2ddbed9..4c6d86e 100644 --- a/src/allocator.cpp +++ b/src/allocator.cpp @@ -47,7 +47,7 @@ namespace randomx { rx_aligned_free(ptr); } - template class AlignedAllocator; + template struct AlignedAllocator; void* LargePageAllocator::allocMemory(size_t count) { return allocLargePagesMemory(count); diff --git a/src/jit_compiler_a64.hpp b/src/jit_compiler_a64.hpp index a4adb80..a02824f 100644 --- a/src/jit_compiler_a64.hpp +++ b/src/jit_compiler_a64.hpp @@ -38,7 +38,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. namespace randomx { class Program; - class ProgramConfiguration; + struct ProgramConfiguration; class SuperscalarProgram; class Instruction; diff --git a/src/jit_compiler_fallback.hpp b/src/jit_compiler_fallback.hpp index 56ccb8c..57a6dbf 100644 --- a/src/jit_compiler_fallback.hpp +++ b/src/jit_compiler_fallback.hpp @@ -36,7 +36,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. namespace randomx { class Program; - class ProgramConfiguration; + struct ProgramConfiguration; class SuperscalarProgram; class JitCompilerFallback { diff --git a/src/jit_compiler_x86.hpp b/src/jit_compiler_x86.hpp index 7829fca..e95685f 100644 --- a/src/jit_compiler_x86.hpp +++ b/src/jit_compiler_x86.hpp @@ -36,7 +36,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. namespace randomx { class Program; - class ProgramConfiguration; + struct ProgramConfiguration; class SuperscalarProgram; class JitCompilerX86; class Instruction;