Displaying 2 results from an estimated 2 matches for "stdlib_module".
2015 Jun 08
3
[LLVMdev] Question about usage of LLVMLinkModules()
...ain 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 really naive mistake...
2015 Jun 11
2
[LLVMdev] Question about usage of LLVMLinkModules()
..., 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
>...