How to convert ModuleRef to Module?

Hi all,

Currently, I’m using a Python packge (llvmlite) and I could only get a ModuleRef object from the upper Python layer.
To obtain a Module object, I need to convert from ModuleRef, how could I do this?
I’ve checked the implementation of “core.cpp”, but there is no such a function.

Thanks for any comments or discussions.


Think I've solved this problem, I could directly use unwrap(moduleref) to convert (saw such a usage in LLVM code).

------------------ Original ------------------