[PATCH] Add an LTO interface to parse metadata and extract linker options
Yunzhong Gao
Yunzhong_Gao at playstation.sony.com
Fri Dec 6 12:26:56 PST 2013
ygao added you to the CC list for the revision "Add an LTO interface to parse metadata and extract linker options".
Hi,
This patch adds the following LTO interface to parse metadata nodes and extract linker options and dependent
libraries from a bitcode module. The new API functions are:
unsigned int lto_module_get_num_deplibs(lto_module_t mod) : Returns the number of dependent libraries in the object module.
const char* lto_module_get_deplib(lto_module_t mod, unsigned int index) : Returns the ith dependent library in the module.
unsigned int lto_module_get_num_linkeropts(lto_module_t mod) : Returns the number of linker options in the object module.
const char* lto_module_get_linkeropt(lto_module_t mod, unsigned int index) : Returns the ith linker option in the module.
These new APIs are very similar to the existing APIs for symbols.
Could someone take a look whether this is good to go in? Does anyone have strong opinion on this proposed interface?
Many thanks,
- Gao.
http://llvm-reviews.chandlerc.com/D2343
Files:
include/llvm/Target/TargetLoweringObjectFile.h
include/llvm/LTO/LTOModule.h
include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
include/llvm-c/lto.h
tools/lto/lto.cpp
tools/lto/lto.exports
lib/LTO/LTOModule.cpp
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2343.2.patch
Type: text/x-patch
Size: 9453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131206/e6530b3d/attachment.bin>
More information about the llvm-commits
mailing list