Displaying 2 results from an estimated 2 matches for "llvmlinkerdestroysource".
2015 Jun 08
3
[LLVMdev] Question about usage of LLVMLinkModules()
...h 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, and that
my whole appro...
2015 Jun 11
2
[LLVMdev] Question about usage of LLVMLinkModules()
...earing 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 t...