From 3029a0c56a1e4249746ff6b54d825e88fee6cddf Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 9 Apr 2012 05:26:48 +0000 Subject: Add a hook to turn on the internalize pass through the LTO interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154306 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/lto.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/llvm-c') diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index f822b47524..c0f4c6b30c 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -250,6 +250,12 @@ extern void lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args, int nargs); +/** + * Enables the internalize pass during LTO optimizations. + */ +extern void +lto_codegen_whole_program_optimization(lto_code_gen_t cg); + /** * 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 @@ -258,7 +264,6 @@ lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args, extern void lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol); - /** * Writes a new object file at the specified path that contains the * merged contents of all modules added so far. @@ -267,7 +272,6 @@ lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol); extern bool lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path); - /** * Generates code for all added modules into one native object file. * On success returns a pointer to a generated mach-o/ELF buffer and -- cgit v1.2.3-18-g5258