mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Fix portability problems
This commit is contained in:
parent
85ef08a9a0
commit
3ebef61c5b
2 changed files with 4 additions and 4 deletions
|
|
@ -45,7 +45,7 @@ std::unique_ptr<llvm::Module> Cache::getObject(std::string const& id)
|
|||
{
|
||||
auto module = std::unique_ptr<llvm::Module>(new llvm::Module(id, llvm::getGlobalContext()));
|
||||
auto mainFuncType = llvm::FunctionType::get(llvm::IntegerType::get(llvm::getGlobalContext(), 32), {}, false);
|
||||
auto func = llvm::Function::Create(mainFuncType, llvm::Function::ExternalLinkage, id, module.get());
|
||||
llvm::Function::Create(mainFuncType, llvm::Function::ExternalLinkage, id, module.get());
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ void ObjectCache::notifyObjectCompiled(llvm::Module const* _module, llvm::Memory
|
|||
cacheFile << _object->getBuffer();
|
||||
}
|
||||
|
||||
llvm::MemoryBuffer* ObjectCache::getObject(llvm::Module const* _module)
|
||||
llvm::MemoryBuffer* ObjectCache::getObject(llvm::Module const*)
|
||||
{
|
||||
auto o = lastObject;
|
||||
lastObject = nullptr;
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ namespace jit
|
|||
Ext::Ext(RuntimeManager& _runtimeManager, Memory& _memoryMan):
|
||||
RuntimeHelper(_runtimeManager),
|
||||
m_memoryMan(_memoryMan),
|
||||
m_funcs{},
|
||||
m_argAllocas{}
|
||||
m_funcs({}), // The only std::array initialization that works in both Visual Studio & GCC
|
||||
m_argAllocas({})
|
||||
{
|
||||
m_size = m_builder.CreateAlloca(Type::Size, nullptr, "env.size");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue