Browse Source

Removing boost dependency from libevmjit

cl-refactor
Paweł Bylica 10 years ago
parent
commit
0d32f766eb
  1. 3
      evmjit/CMakeLists.txt
  2. 3
      evmjit/libevmjit-cpp/CMakeLists.txt
  3. 1
      evmjit/libevmjit/CMakeLists.txt
  4. 4
      evmjit/libevmjit/Common.h
  5. 1
      evmjit/libevmjit/Compiler.cpp
  6. 2
      evmjit/libevmjit/interface.cpp

3
evmjit/CMakeLists.txt

@ -32,9 +32,6 @@ else()
link_directories(/usr/lib/llvm-3.5/lib)
endif()
# Boost
find_package(Boost REQUIRED)
add_subdirectory(libevmjit)
if(EVMJIT_CPP)

3
evmjit/libevmjit-cpp/CMakeLists.txt

@ -1,5 +1,8 @@
set(TARGET_NAME evmjit-cpp)
# Boost
find_package(Boost REQUIRED)
set(SOURCES
Env.cpp
JitVM.cpp JitVM.h

1
evmjit/libevmjit/CMakeLists.txt

@ -15,7 +15,6 @@ add_library(${TARGET_NAME} SHARED ${SOURCES} ${HEADERS})
set_property(TARGET ${TARGET_NAME} PROPERTY FOLDER "libs")
include_directories(${LLVM_INCLUDE_DIRS})
include_directories(${Boost_INCLUDE_DIRS})
target_link_libraries(${TARGET_NAME} PRIVATE ${LLVM_LIBS})
target_link_libraries(${TARGET_NAME} PRIVATE gmp)

4
evmjit/libevmjit/Common.h

@ -1,7 +1,7 @@
#pragma once
#include <vector>
#include <boost/multiprecision/cpp_int.hpp>
#include <tuple>
namespace dev
{
@ -13,8 +13,6 @@ namespace jit
using byte = uint8_t;
using bytes = std::vector<byte>;
using bytes_ref = std::tuple<byte const*, size_t>;
using u256 = boost::multiprecision::uint256_t;
using bigint = boost::multiprecision::cpp_int;
struct NoteChannel {}; // FIXME: Use some log library?

1
evmjit/libevmjit/Compiler.cpp

@ -4,6 +4,7 @@
#include <functional>
#include <fstream>
#include <chrono>
#include <sstream>
#include <llvm/ADT/PostOrderIterator.h>
#include <llvm/IR/CFG.h>

2
evmjit/libevmjit/interface.cpp

@ -1,5 +1,5 @@
#include "interface.h"
#include <cstdio>
#include <cstring>
#include "ExecutionEngine.h"
extern "C"

Loading…
Cancel
Save