refactor(dev): 统一 IR/MIR 接口命名风格
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
|
||||
namespace ir {
|
||||
|
||||
Context& Module::context() { return context_; }
|
||||
Context& Module::GetContext() { return context_; }
|
||||
|
||||
const Context& Module::context() const { return context_; }
|
||||
const Context& Module::GetContext() const { return context_; }
|
||||
|
||||
Function* Module::CreateFunction(const std::string& name,
|
||||
std::shared_ptr<Type> ret_type) {
|
||||
@@ -14,7 +14,7 @@ Function* Module::CreateFunction(const std::string& name,
|
||||
return functions_.back().get();
|
||||
}
|
||||
|
||||
const std::vector<std::unique_ptr<Function>>& Module::functions() const {
|
||||
const std::vector<std::unique_ptr<Function>>& Module::GetFunctions() const {
|
||||
return functions_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user