Paweł Bylica
10 years ago
3 changed files with 42 additions and 1 deletions
@ -1,9 +1,26 @@ |
|||||
|
|
||||
#pragma once |
#pragma once |
||||
|
|
||||
|
#include <llvm/IR/IRBuilder.h> |
||||
|
|
||||
#include <libevmface/Instruction.h> |
#include <libevmface/Instruction.h> |
||||
|
|
||||
namespace evmcc |
namespace evmcc |
||||
{ |
{ |
||||
|
|
||||
|
class GasMeter |
||||
|
{ |
||||
|
public: |
||||
|
GasMeter(llvm::IRBuilder<>& _builder, llvm::Module* module); |
||||
|
|
||||
|
GasMeter(const GasMeter&) = delete; |
||||
|
void operator=(GasMeter) = delete; |
||||
|
|
||||
|
void check(dev::eth::Instruction _inst); |
||||
|
|
||||
|
private: |
||||
|
llvm::IRBuilder<>& m_builder; |
||||
|
llvm::GlobalVariable* m_gas; |
||||
|
}; |
||||
|
|
||||
} |
} |
Loading…
Reference in new issue