From 073284feb05becd81b7f68ea1eeb3d1c6ff75798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 19 May 2015 14:02:32 +0200 Subject: [PATCH] MSVC fixes. --- evmjit/include/evmjit/JIT.h | 4 ++-- evmjit/libevmjit/Cache.h | 2 ++ evmjit/libevmjit/JIT.cpp | 2 ++ evmjit/libevmjit/RuntimeManager.h | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/evmjit/include/evmjit/JIT.h b/evmjit/include/evmjit/JIT.h index c12637a25..adca983d9 100644 --- a/evmjit/include/evmjit/JIT.h +++ b/evmjit/include/evmjit/JIT.h @@ -35,7 +35,7 @@ inline bool operator==(h256 _h1, h256 _h2) /// Representation of 256-bit value binary compatible with LLVM i256 struct i256 { - uint64_t words[4] = {0,}; + uint64_t words[4]; i256() = default; i256(h256 _h) { *this = *reinterpret_cast(&_h); } @@ -149,7 +149,7 @@ public: /// Returns `true` if the EVM code has been compiled and loaded into memory. /// In this case the code can be executed without overhead. /// \param _codeHash The Keccak hash of the EVM code. - static bool isCodeReady(h256 const& _codeHash); + EXPORT static bool isCodeReady(h256 const& _codeHash); EXPORT static ReturnCode exec(ExecutionContext& _context); }; diff --git a/evmjit/libevmjit/Cache.h b/evmjit/libevmjit/Cache.h index 2f152c9f8..5de4222fc 100644 --- a/evmjit/libevmjit/Cache.h +++ b/evmjit/libevmjit/Cache.h @@ -3,7 +3,9 @@ #include #include +#include "preprocessor/llvm_includes_start.h" #include +#include "preprocessor/llvm_includes_end.h" namespace llvm { diff --git a/evmjit/libevmjit/JIT.cpp b/evmjit/libevmjit/JIT.cpp index f8b4d4c00..6a9b7f932 100644 --- a/evmjit/libevmjit/JIT.cpp +++ b/evmjit/libevmjit/JIT.cpp @@ -1,5 +1,7 @@ #include "evmjit/JIT.h" +#include + #include "preprocessor/llvm_includes_start.h" #include #include diff --git a/evmjit/libevmjit/RuntimeManager.h b/evmjit/libevmjit/RuntimeManager.h index 5ce749933..98d5b3132 100644 --- a/evmjit/libevmjit/RuntimeManager.h +++ b/evmjit/libevmjit/RuntimeManager.h @@ -1,5 +1,7 @@ #pragma once +#include + #include "CompilerHelper.h" #include "Type.h" #include "Instruction.h"