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:
River Riddle
2019-07-10 15:49:27 -07:00
committed by jpienaar
parent 122cab6770
commit 6da343ecfc
16 changed files with 45 additions and 41 deletions

View File

@@ -225,7 +225,7 @@ struct PythonMLIRModule {
}
PythonFunction getNamedFunction(const std::string &name) {
return moduleManager.getNamedFunction(name);
return moduleManager.lookupSymbol<FuncOp>(name);
}
PythonFunctionContext