Function wrap_llmod
Source pub(crate) unsafe fn wrap_llmod<'ll>(
_llcx: Context<'ll>,
llmod_raw: NonNull<ModuleRaw>,
) -> Module<'ll>
Expand description
Converts an unbranded pointer-to-module to a lifetime-branded Module.
ยงSafety
- The pointer must be a valid LLVM module within the specified context.
- The module must not be disposed during the lifetime of its context.