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)
commitf3fc8c9d0953dbb275f00122afbe207ef7e76df4
treeb1374660a820a6e15ff03115b06ef0f30679f5ca
parent4822c5fa52bcc581ac54046b1f5f28be6159bb4e
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201114 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/lto.h
include/llvm/LTO/LTOModule.h
lib/LTO/LTOModule.cpp
tools/lto/lto.cpp
tools/lto/lto.exports