diff options
author | Yunzhong Gao <Yunzhong_Gao@playstation.sony.com> | 2014-01-21 18:31:27 +0000 |
---|---|---|
committer | Yunzhong Gao <Yunzhong_Gao@playstation.sony.com> | 2014-01-21 18:31:27 +0000 |
commit | a88d7abeb1edc9029f27d35e89ea4eb3dc6f49f0 (patch) | |
tree | d244300c8cbf50034a5957fb0bde758a9f253430 /llvm/include/llvm-c | |
parent | cb6e1257ffb92a8ebad80bb62e3b331a9460f8e8 (diff) | |
download | bcm5719-llvm-a88d7abeb1edc9029f27d35e89ea4eb3dc6f49f0.tar.gz bcm5719-llvm-a88d7abeb1edc9029f27d35e89ea4eb3dc6f49f0.zip |
Adding new LTO APIs to parse metadata nodes and extract linker options and
dependent libraries from a bitcode module.
Differential Revision: http://llvm-reviews.chandlerc.com/D2343
llvm-svn: 199759
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/lto.h | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h index 7078a745ff5..fbad2b56860 100644 --- a/llvm/include/llvm-c/lto.h +++ b/llvm/include/llvm-c/lto.h @@ -40,7 +40,7 @@ typedef bool lto_bool_t; * @{ */ -#define LTO_API_VERSION 7 +#define LTO_API_VERSION 8 /** * \since prior to LTO_API_VERSION=3 @@ -246,6 +246,43 @@ lto_module_get_symbol_name(lto_module_t mod, unsigned int index); extern lto_symbol_attributes lto_module_get_symbol_attribute(lto_module_t mod, unsigned int index); + +/** + * Returns the number of dependent libraries in the object module. + * + * \since LTO_API_VERSION=8 + */ +extern unsigned int +lto_module_get_num_deplibs(lto_module_t mod); + + +/** + * Returns the ith dependent library in the module. + * + * \since LTO_API_VERSION=8 + */ +extern const char* +lto_module_get_deplib(lto_module_t mod, unsigned int index); + + +/** + * Returns the number of linker options in the object module. + * + * \since LTO_API_VERSION=8 + */ +extern unsigned int +lto_module_get_num_linkeropts(lto_module_t mod); + + +/** + * Returns the ith linker option in the module. + * + * \since LTO_API_VERSION=8 + */ +extern const char* +lto_module_get_linkeropt(lto_module_t mod, unsigned int index); + + /** * Diagnostic severity. * |