fix(ir): 修改了一下context的管理
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
|
||||
namespace ir {
|
||||
|
||||
Context& Module::context() { return context_; }
|
||||
|
||||
const Context& Module::context() const { return context_; }
|
||||
|
||||
Function* Module::CreateFunction(const std::string& name,
|
||||
std::shared_ptr<Type> ret_type) {
|
||||
functions_.push_back(std::make_unique<Function>(name, std::move(ret_type)));
|
||||
|
||||
Reference in New Issue
Block a user