diff options
author | Nick Kledzik <kledzik@apple.com> | 2009-06-04 00:28:45 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2009-06-04 00:28:45 +0000 |
commit | cac8c8a9b3e1a1ec3feeba44006ce84b327db327 (patch) | |
tree | 62458c22bae7b06af1eceb28e0bc342b3badb17e /llvm/include/llvm-c/lto.h | |
parent | 5cdac0a52ec319215b83ae2cf0df5c9baa228aa4 (diff) | |
download | bcm5719-llvm-cac8c8a9b3e1a1ec3feeba44006ce84b327db327.tar.gz bcm5719-llvm-cac8c8a9b3e1a1ec3feeba44006ce84b327db327.zip |
<rdar://problem/6940611> libLTO.dylib needs to let linker specify path to assembler
Add lto_codegen_set_assembler_path() API which allows the linker to specify the
path to the assembler tool to run. When assembler is used (instead of compiler)
different command line options are used.
Add LTO_API_VERSION #define so clients (linkers) can conditionalize use of new APIs.
llvm-svn: 72823
Diffstat (limited to 'llvm/include/llvm-c/lto.h')
-rw-r--r-- | llvm/include/llvm-c/lto.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h index 81986176908..5d92fc5af01 100644 --- a/llvm/include/llvm-c/lto.h +++ b/llvm/include/llvm-c/lto.h @@ -19,6 +19,8 @@ #include <stdbool.h> #include <stddef.h> +#define LTO_API_VERSION 3 + typedef enum { LTO_SYMBOL_ALIGNMENT_MASK = 0x0000001F, /* log2 of alignment */ LTO_SYMBOL_PERMISSIONS_MASK = 0x000000E0, @@ -208,6 +210,14 @@ lto_codegen_set_gcc_path(lto_code_gen_t cg, const char* path); /** + * Sets the location of the assembler tool to run. If not set, libLTO + * will use gcc to invoke the assembler. + */ +extern void +lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path); + + +/** * Adds to a list of all global symbols that must exist in the final * generated code. If a function is not listed, it might be * inlined into every usage and optimized away. |