diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2015-06-29 23:09:12 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2015-06-29 23:09:12 +0000 |
commit | 10e9fb18d4fdad1f54a22905f732f3f514ae43f4 (patch) | |
tree | d0716a3c8d342abb70553bff63fc091846ca3b26 /tools/lto | |
parent | 717764717b34568a1db4f7c8ac30c540f38161ec (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 16 | ||||
-rw-r--r-- | tools/lto/lto.exports | 5 |
2 files changed, 2 insertions, 19 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index c77702da0e8..5c712f18c9e 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -223,21 +223,7 @@ lto_symbol_attributes lto_module_get_symbol_attribute(lto_module_t mod, return unwrap(mod)->getSymbolAttributes(index); } -unsigned int lto_module_get_num_deplibs(lto_module_t mod) { - return 0; -} - -const char* lto_module_get_deplib(lto_module_t mod, unsigned int index) { - return nullptr; -} - -unsigned int lto_module_get_num_linkeropts(lto_module_t mod) { - return 1; -} - -const char* lto_module_get_linkeropt(lto_module_t mod, unsigned int index) { - if (index != 0) - return nullptr; +const char* lto_module_get_linkeropts(lto_module_t mod) { return unwrap(mod)->getLinkerOpts(); } diff --git a/tools/lto/lto.exports b/tools/lto/lto.exports index b2078061fec..8bc2b0f9d31 100644 --- a/tools/lto/lto.exports +++ b/tools/lto/lto.exports @@ -8,10 +8,7 @@ lto_module_create_from_memory lto_module_create_from_memory_with_path lto_module_create_in_local_context lto_module_create_in_codegen_context -lto_module_get_deplib -lto_module_get_linkeropt -lto_module_get_num_deplibs -lto_module_get_num_linkeropts +lto_module_get_linkeropts lto_module_get_num_symbols lto_module_get_symbol_attribute lto_module_get_symbol_name |