[LLVMdev] Disjoint types after reading several modules

Duncan Sands baldrick at free.fr
Thu Feb 2 05:32:23 PST 2012

Hi Clemens,

On 02/02/12 14:25, Clemens Hammacher wrote:
> On 2/2/12 1:51 PM, Duncan Sands wrote:
>> what do you mean by "copied over to the main module"? If you want to add
>> additional IR to the main module then you should link it in using the linker.
> I think that the linker would indeed be able to remap the types correctly, but
> the main obstacle here is that we only copy individual functions. Maybe it would
> be possible to first copy the function into a new module, and then link this
> into the main module, but then again the question is how to correctly copy the
> function to the temporary module ;)


Ciao, Duncan.

More information about the llvm-dev mailing list