From 4d2e9d9a1c213db144785f386ce661914d17afb6 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 16 Apr 2012 10:58:38 +0000 Subject: Remove lto_codegen_set_whole_program_optimization. It is a work in progress, so we don't want it to show up in the stable 3.1 interface. While at it, add a comment about why LTOCodeGenerator manually creates the internalize pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154807 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/lto/lto.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tools/lto/lto.cpp') diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index addf7877c9..a7e633d14b 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -183,12 +183,6 @@ void lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, cg->addMustPreserveSymbol(symbol); } -/// lto_codegen_set_whole_program_optimization - Enable the internalize pass -/// during LTO optimizations. -void lto_codegen_set_whole_program_optimization(lto_code_gen_t cg) { - cg->enableInternalizePass(); -} - /// lto_codegen_write_merged_modules - Writes a new file at the specified path /// that contains the merged contents of all modules added so far. Returns true /// on error (check lto_get_error_message() for details). -- cgit v1.2.3