LTO API: add lto_module_create_from_memory_with_path.

Manman Ren manman.ren at gmail.com
Fri Feb 7 15:06:32 PST 2014


Hi all,

This function adds an extra path argument to lto_module_create_from_memory.
The path argument will be passed to makeBuffer to make sure the MemoryBuffer
has a name and the created module has a module identifier. Modules created
by lto_module_create_from_memory will have empty module identifiers.

This is mainly for emitting warning messages from the linker. When we emit
warning message on one module, we can then use its module identifier.

LTO_API_VERSION is bumped to 9.

Thanks,
Manman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140207/5f437554/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lto_api.patch
Type: application/octet-stream
Size: 4860 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140207/5f437554/attachment.obj>


More information about the llvm-commits mailing list