search for: main_modul

Displaying 2 results from an estimated 2 matches for "main_modul".

Did you mean: main_module
2015 Jun 08
3
[LLVMdev] Question about usage of LLVMLinkModules()
...e other the main module which should use it. I create both modules, with no errors appearing if I use LLVMVerifyModule() on them. The problem is how do I link them? I tried to do it like this: // if an error occurs LLVMLinkModules() returns true if (true == LLVMLinkModules(main_module, stdlib_module, LLVMLinkerDestroySource, &error)) { bllvm_error("Could not link LLVM modules", error); goto end; } But this fails (returns true), with no error. Even though both modules are valid. I understand that the above may be a real...
2015 Jun 11
2
[LLVMdev] Question about usage of LLVMLinkModules()
...both modules, with no errors appearing if I use > LLVMVerifyModule() on them. > > > > The problem is how do I link them? I tried to do it like this: > > > > // if an error occurs LLVMLinkModules() returns true > > if (true == LLVMLinkModules(main_module, stdlib_module, > LLVMLinkerDestroySource, &error)) { > > bllvm_error("Could not link LLVM modules", error); > > goto end; > > } > > > > > > But this fails (returns true), with no error. Even though bo...