mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
Remove public LLVM dependency in Compiler
This commit is contained in:
parent
507ba06b49
commit
e33fdeab21
2 changed files with 10 additions and 15 deletions
|
|
@ -7,6 +7,16 @@
|
||||||
namespace evmcc
|
namespace evmcc
|
||||||
{
|
{
|
||||||
|
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
llvm::Type* word8;
|
||||||
|
llvm::Type* word8ptr;
|
||||||
|
llvm::Type* word256;
|
||||||
|
llvm::Type* word256ptr;
|
||||||
|
llvm::Type* word256arr;
|
||||||
|
llvm::Type* size;
|
||||||
|
} Types;
|
||||||
|
|
||||||
Compiler::Compiler()
|
Compiler::Compiler()
|
||||||
{
|
{
|
||||||
auto& context = llvm::getGlobalContext();
|
auto& context = llvm::getGlobalContext();
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <llvm/IR/Type.h>
|
|
||||||
|
|
||||||
#include <libdevcore/Common.h>
|
#include <libdevcore/Common.h>
|
||||||
|
|
||||||
namespace evmcc
|
namespace evmcc
|
||||||
|
|
@ -10,19 +8,6 @@ namespace evmcc
|
||||||
|
|
||||||
class Compiler
|
class Compiler
|
||||||
{
|
{
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
llvm::Type* word8;
|
|
||||||
llvm::Type* word8ptr;
|
|
||||||
llvm::Type* word256;
|
|
||||||
llvm::Type* word256ptr;
|
|
||||||
llvm::Type* word256arr;
|
|
||||||
llvm::Type* size;
|
|
||||||
} Types;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Compiler();
|
Compiler();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue