Codegen for GAS

This commit is contained in:
artur-zawlocki 2014-10-13 16:57:13 +01:00
parent 0c259cd267
commit 9b3c446578

View file

@ -659,6 +659,13 @@ std::unique_ptr<llvm::Module> Compiler::compile(const dev::bytes& bytecode)
break;
}
case Instruction::GAS:
{
auto value = builder.CreateLoad(gasMeter.getLLVMGasVar());
stack.push(value);
break;
}
case Instruction::ADDRESS:
{
auto value = ext.address();