Browse Source

Change some runtime names

cl-refactor
Paweł Bylica 10 years ago
parent
commit
e273299a09
  1. 1
      libevmjit/Compiler.cpp
  2. 2
      libevmjit/Runtime.cpp

1
libevmjit/Compiler.cpp

@ -172,6 +172,7 @@ std::unique_ptr<llvm::Module> Compiler::compile(bytesConstRef bytecode)
llvm::Type* mainFuncArgTypes[] = {m_builder.getInt32Ty(), Type::RuntimePtr}; // There must be int in first place because LLVM does not support other signatures
auto mainFuncType = llvm::FunctionType::get(Type::MainReturn, mainFuncArgTypes, false);
m_mainFunc = llvm::Function::Create(mainFuncType, llvm::Function::ExternalLinkage, "main", module.get());
m_mainFunc->arg_begin()->getNextNode()->setName("rt");
// Create the basic blocks.
auto entryBlock = llvm::BasicBlock::Create(m_builder.getContext(), "entry", m_mainFunc);

2
libevmjit/Runtime.cpp

@ -27,7 +27,7 @@ llvm::StructType* RuntimeData::getType()
Type::BytePtr,
Type::BytePtr
};
type = llvm::StructType::create(elems, "RuntimeData");
type = llvm::StructType::create(elems, "Runtime");
}
return type;
}

Loading…
Cancel
Save