NFC: Replace Module::getNamedFunction with lookupSymbol<FuncOp>.
This allows for removing the last direct reference to FuncOp from ModuleOp. PiperOrigin-RevId: 257498296
This commit is contained in:
@@ -225,7 +225,7 @@ struct PythonMLIRModule {
|
||||
}
|
||||
|
||||
PythonFunction getNamedFunction(const std::string &name) {
|
||||
return moduleManager.getNamedFunction(name);
|
||||
return moduleManager.lookupSymbol<FuncOp>(name);
|
||||
}
|
||||
|
||||
PythonFunctionContext
|
||||
|
||||
Reference in New Issue
Block a user