summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-06-29 23:09:12 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-06-29 23:09:12 +0000
commit5d7dffb6f46bf751a23fcba6a2cfdc2975eac380 (patch)
tree8e41aae1d243be52c3e72cbb874a59295d1e5f57 /llvm/include/llvm-c
parentab1243fe6c01ee7a28a0cb34dc60eaf24eafaf8f (diff)
downloadbcm5719-llvm-5d7dffb6f46bf751a23fcba6a2cfdc2975eac380.tar.gz
bcm5719-llvm-5d7dffb6f46bf751a23fcba6a2cfdc2975eac380.zip
lto: Clean up C libLTO interfaces pertaining to linker flags.
Specifically, remove the dependent library interface and replace the existing linker option interface with a new one that returns a single list of flags. Differential Revision: http://reviews.llvm.org/D10820 llvm-svn: 241018
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/lto.h44
1 files changed, 5 insertions, 39 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h
index 0ccb0e9a584..42c05a2fc59 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 15
+#define LTO_API_VERSION 16
/**
* \since prior to LTO_API_VERSION=3
@@ -280,49 +280,15 @@ lto_module_get_symbol_attribute(lto_module_t mod, unsigned int index);
/**
- * Returns the number of dependent libraries in the object module.
+ * Returns the module's linker options.
*
- * Deprecated. Now returns an empty list.
- *
- * \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.
- *
- * Deprecated. Now always returns null.
- *
- * \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.
- *
- * Each linker option may consist of multiple flags. It is the linker's
- * responsibility to split the flags using a platform-specific mechanism.
- *
- * \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.
- *
- * Each linker option may consist of multiple flags. It is the linker's
+ * The linker options may consist of multiple flags. It is the linker's
* responsibility to split the flags using a platform-specific mechanism.
*
- * \since LTO_API_VERSION=8
+ * \since LTO_API_VERSION=16
*/
extern const char*
-lto_module_get_linkeropt(lto_module_t mod, unsigned int index);
+lto_module_get_linkeropts(lto_module_t mod);
/**
OpenPOWER on IntegriCloud