Browse Source

Fix warnings

cl-refactor
Paweł Bylica 10 years ago
parent
commit
1f50bcd3b5
  1. 4
      evmjit/libevmjit/BasicBlock.h
  2. 1
      evmjit/libevmjit/Cache.h
  3. 5
      evmjit/libevmjit/ExecutionEngine.cpp
  4. 4
      evmjit/libevmjit/Ext.h
  5. 2
      evmjit/libevmjit/Runtime.h

4
evmjit/libevmjit/BasicBlock.h

@ -102,12 +102,12 @@ private:
/// the item below the top and so on. The stack grows as the code
/// accesses more items on the EVM stack but once a value is put on
/// the stack, it will never be replaced.
std::vector<llvm::Value*> m_initialStack = {};
std::vector<llvm::Value*> m_initialStack;
/// This stack tracks the contents of the EVM stack as the basic block
/// executes. It may grow on both sides, as the code pushes items on
/// top of the stack or changes existing items.
std::vector<llvm::Value*> m_currentStack = {};
std::vector<llvm::Value*> m_currentStack;
/// How many items higher is the current stack than the initial one.
/// May be negative.

1
evmjit/libevmjit/Cache.h

@ -2,7 +2,6 @@
#include <memory>
#include <unordered_map>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/ObjectCache.h>

5
evmjit/libevmjit/ExecutionEngine.cpp

@ -4,8 +4,13 @@
#include <llvm/IR/Module.h>
#include <llvm/ADT/Triple.h>
#pragma warning(push)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/SectionMemoryManager.h>
#pragma warning(pop)
#pragma GCC diagnostic pop
#include <llvm/ExecutionEngine/MCJIT.h>
#include <llvm/Support/TargetSelect.h>
#include <llvm/Support/Host.h>

4
evmjit/libevmjit/Ext.h

@ -65,8 +65,8 @@ private:
llvm::Value* m_size;
llvm::Value* m_data = nullptr;
std::array<llvm::Function*, sizeOf<EnvFunc>::value> m_funcs = {};
std::array<llvm::Value*, 8> m_argAllocas = {};
std::array<llvm::Function*, sizeOf<EnvFunc>::value> m_funcs = {{}};
std::array<llvm::Value*, 8> m_argAllocas = {{}};
size_t m_argCounter = 0;
llvm::CallInst* createCall(EnvFunc _funcId, std::initializer_list<llvm::Value*> const& _args);

2
evmjit/libevmjit/Runtime.h

@ -48,7 +48,7 @@ private:
Env& m_env; ///< Pointer to environment proxy. Expected by compiled contract.
jmp_buf_ref m_currJmpBuf; ///< Pointer to jump buffer. Expected by compiled contract.
byte* m_memoryData = nullptr;
i256 m_memorySize = {};
i256 m_memorySize;
std::jmp_buf m_jmpBuf;
StackImpl m_stack;
MemoryImpl m_memory;

Loading…
Cancel
Save