search for: bllvm_error

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

2015 Jun 08
3
[LLVMdev] Question about usage of LLVMLinkModules()
...ppearing 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 really naive mistake, and that my whole approach may be wrong. This is why I would apprec...
2015 Jun 11
2
[LLVMdev] Question about usage of LLVMLinkModules()
...t; 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 really naive mistake, and > that...