s/lto_codegen_whole_program_optimization/lto_codegen_set_whole_program_optimization/
authorBill Wendling <isanbard@gmail.com>
Mon, 9 Apr 2012 08:32:21 +0000 (08:32 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 9 Apr 2012 08:32:21 +0000 (08:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154312 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/lto.h
tools/lto/lto.cpp
tools/lto/lto.exports

index c0f4c6b30c8c1d7297480123f73d17345826539c..5d9cecbc5153b3ec5b24b1e45f7d9aa625987f1e 100644 (file)
@@ -254,7 +254,7 @@ lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
  * Enables the internalize pass during LTO optimizations.
  */
 extern void
-lto_codegen_whole_program_optimization(lto_code_gen_t cg);
+lto_codegen_set_whole_program_optimization(lto_code_gen_t cg);
 
 /**
  * Adds to a list of all global symbols that must exist in the final
index e523eb390187ea8290f0493feff88388484fc0f3..addf7877c96ebd85e380c81eb78d2081d1adbd95 100644 (file)
@@ -183,9 +183,9 @@ void lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg,
   cg->addMustPreserveSymbol(symbol);
 }
 
-/// lto_codegen_whole_program_optimization - Enable the internalize pass during
-/// LTO optimizations.
-void lto_codegen_whole_program_optimization(lto_code_gen_t cg) {
+/// 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();
 }
 
index 1726388c0ae0e166b98d20f7b2b9a25704089e4c..f471f1ad6a270af7aa030bd54b5178ca292c300c 100644 (file)
@@ -27,7 +27,7 @@ lto_codegen_set_assembler_args
 lto_codegen_set_assembler_path
 lto_codegen_set_cpu
 lto_codegen_compile_to_file
-lto_codegen_whole_program_optimization
+lto_codegen_set_whole_program_optimization
 LLVMCreateDisasm
 LLVMDisasmDispose
 LLVMDisasmInstruction