summaryrefslogtreecommitdiffstats
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
commitdeffc42d63ac31f31620782672bc40891ee2be1d (patch)
treea4dc62ae9c5a06522349f86b56d27a358c65f4e1
parentb801ca397682a3d24eefb5951a002864ef40c555 (diff)
downloadbcm5719-llvm-deffc42d63ac31f31620782672bc40891ee2be1d.tar.gz
bcm5719-llvm-deffc42d63ac31f31620782672bc40891ee2be1d.zip
s/lto_codegen_whole_program_optimization/lto_codegen_set_whole_program_optimization/
llvm-svn: 154312
-rw-r--r--llvm/include/llvm-c/lto.h2
-rw-r--r--llvm/tools/lto/lto.cpp6
-rw-r--r--llvm/tools/lto/lto.exports2
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h
index c0f4c6b30c8..5d9cecbc515 100644
--- a/llvm/include/llvm-c/lto.h
+++ b/llvm/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/llvm/tools/lto/lto.cpp b/llvm/tools/lto/lto.cpp
index e523eb39018..addf7877c96 100644
--- a/llvm/tools/lto/lto.cpp
+++ b/llvm/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/llvm/tools/lto/lto.exports b/llvm/tools/lto/lto.exports
index 1726388c0ae..f471f1ad6a2 100644
--- a/llvm/tools/lto/lto.exports
+++ b/llvm/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
OpenPOWER on IntegriCloud