Skip to content

Commit 33273fe

Browse files
committed
Introduce a new interface to intercept the linked module.
1 parent aab6333 commit 33273fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/interface.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ link_libraries!(@nospecialize(job::CompilerJob), mod::LLVM.Module,
354354
finish_module!(@nospecialize(job::CompilerJob), mod::LLVM.Module, entry::LLVM.Function) =
355355
entry
356356

357+
# finalization of linked modules, after deferred codegen but before optimization
358+
finish_linked_module!(@nospecialize(job::CompilerJob), mod::LLVM.Module) = return
359+
357360
# post-Julia optimization processing of the module
358361
optimize_module!(@nospecialize(job::CompilerJob), mod::LLVM.Module) = return
359362

0 commit comments

Comments
 (0)