aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-09 08:32:21 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-09 08:32:21 +0000
commita3706d6754e972c4339e4495a18d803027bb9195 (patch)
tree57d595a8dfd31acaa8b2f676c13777c24a397163
parent154819dd6f60d0d1d1c75a22e8902c5125fad49b (diff)
downloadexternal_llvm-a3706d6754e972c4339e4495a18d803027bb9195.zip
external_llvm-a3706d6754e972c4339e4495a18d803027bb9195.tar.gz
external_llvm-a3706d6754e972c4339e4495a18d803027bb9195.tar.bz2
s/lto_codegen_whole_program_optimization/lto_codegen_set_whole_program_optimization/
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154312 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm-c/lto.h2
-rw-r--r--tools/lto/lto.cpp6
-rw-r--r--tools/lto/lto.exports2
3 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h
index c0f4c6b..5d9cecb 100644
--- a/include/llvm-c/lto.h
+++ b/include/llvm-c/lto.h
@@ -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
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp
index e523eb3..addf787 100644
--- a/tools/lto/lto.cpp
+++ b/tools/lto/lto.cpp
@@ -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();
}
diff --git a/tools/lto/lto.exports b/tools/lto/lto.exports
index 1726388..f471f1a 100644
--- a/tools/lto/lto.exports
+++ b/tools/lto/lto.exports
@@ -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