diff options
Diffstat (limited to 'src/cl_gbe_loader.cpp')
-rw-r--r-- | src/cl_gbe_loader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cl_gbe_loader.cpp b/src/cl_gbe_loader.cpp index f190b0d8..0379b3ec 100644 --- a/src/cl_gbe_loader.cpp +++ b/src/cl_gbe_loader.cpp @@ -24,6 +24,7 @@ //function pointer from libgbe.so gbe_program_new_from_source_cb *compiler_program_new_from_source = NULL; +gbe_program_new_from_llvm_file_cb *compiler_program_new_from_llvm_file = NULL; gbe_program_compile_from_source_cb *compiler_program_compile_from_source = NULL; gbe_program_new_gen_program_cb *compiler_program_new_gen_program = NULL; gbe_program_link_program_cb *compiler_program_link_program = NULL; @@ -298,6 +299,10 @@ struct GbeLoaderInitializer if (compiler_program_new_from_source == NULL) return; + compiler_program_new_from_llvm_file = *(gbe_program_new_from_llvm_file_cb **)dlsym(dlhCompiler, "gbe_program_new_from_llvm_file"); + if (compiler_program_new_from_llvm_file == NULL) + return; + compiler_program_compile_from_source = *(gbe_program_compile_from_source_cb **)dlsym(dlhCompiler, "gbe_program_compile_from_source"); if (compiler_program_compile_from_source == NULL) return; |