[Patch] Change linkInModule to take a std::unique_ptr

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 8 18:50:49 PST 2015


LGTM.

— 
Mehdi

> On Dec 8, 2015, at 5:07 PM, Rafael Espíndola <rafael.espindola at gmail.com> wrote:
> 
> Passing in a std::unique_ptr should help find errors when the module
> is used after being linked into another module.
> 
> This changes a C api, but changes it to what it is documented to do:
> 
> * Links the source module into the destination module, taking ownership
> * of the source module away from the caller.
> 
> Cheers,
> Rafael
> <t.diff>



More information about the llvm-commits mailing list