LTO API: add lto_module_create_from_memory_with_path.
authorManman Ren <manman.ren@gmail.com>
Mon, 10 Feb 2014 23:26:14 +0000 (23:26 +0000)
committerManman Ren <manman.ren@gmail.com>
Mon, 10 Feb 2014 23:26:14 +0000 (23:26 +0000)
commit03456a176dd8c83b050eb24986786a0dbae53bc9
tree488c54b2a07aadcbd0b26ede1153ee622518e3da
parentefedd3aa1b8a295606bb5331ad50b2ce30159d16
LTO API: add lto_module_create_from_memory_with_path.

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.

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

rdar://15985737

llvm-svn: 201114
llvm/include/llvm-c/lto.h
llvm/include/llvm/LTO/LTOModule.h
llvm/lib/LTO/LTOModule.cpp
llvm/tools/lto/lto.cpp
llvm/tools/lto/lto.exports