search for: remapmoduletocontext

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

2015 Jun 02
2
[LLVMdev] Linking modules across contexts crashes
...nk a better approach would be adding API for one (or both) of: class Module { public: /// Move this module to the given context. void changeContext(LLVMContext &NewContext); }; /// Remap the given module in a different context. std::unique_ptr<Module> remapModuleToContext( const Module &M, LLVMContext &NewContext); I'm not sure what your exact use case is, but I could see either/both interfaces being useful. For example, you could change `Linker::LinkModules()` to something like: bool Linker::LinkModules(Module &Dest, Module &Src)...
2015 Jun 01
2
[LLVMdev] Linking modules across contexts crashes
> On 2015-Jun-01, at 11:06, Reid Kleckner <rnk at google.com> wrote: > > I'm pretty sure module linking is expected to occur in the same LLVM context. Correct. > IIRC Duncan had some proposal for how ld64 could do something clever with multiple contexts, but I've totally forgotten what it was. This was for LTO (probably unrelated to Yuri's scenario?). 1.