You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
427 B
27 lines
427 B
10 years ago
|
|
||
|
#include "CompilerHelper.h"
|
||
|
|
||
10 years ago
|
#include <llvm/IR/Function.h>
|
||
|
|
||
10 years ago
|
namespace dev
|
||
|
{
|
||
|
namespace eth
|
||
|
{
|
||
|
namespace jit
|
||
|
{
|
||
|
|
||
10 years ago
|
CompilerHelper::CompilerHelper(llvm::IRBuilder<>& _builder) :
|
||
10 years ago
|
m_builder(_builder)
|
||
10 years ago
|
{}
|
||
|
|
||
10 years ago
|
llvm::Module* CompilerHelper::getModule()
|
||
|
{
|
||
|
assert(m_builder.GetInsertBlock());
|
||
|
assert(m_builder.GetInsertBlock()->getParent()); // BB must be in a function
|
||
|
return m_builder.GetInsertBlock()->getParent()->getParent();
|
||
|
}
|
||
|
|
||
10 years ago
|
}
|
||
|
}
|
||
|
}
|