[llvm-commits] CVS: llvm/tools/lto/lto.cpp
Devang Patel
dpatel at apple.com
Thu Sep 21 10:23:11 PDT 2006
Changes in directory llvm/tools/lto:
lto.cpp updated: 1.16 -> 1.17
---
Log message:
Use abstract class to facilitate dlopen() interface.
---
Diffs of the changes: (+5 -5)
lto.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Index: llvm/tools/lto/lto.cpp
diff -u llvm/tools/lto/lto.cpp:1.16 llvm/tools/lto/lto.cpp:1.17
--- llvm/tools/lto/lto.cpp:1.16 Thu Sep 14 00:49:10 2006
+++ llvm/tools/lto/lto.cpp Thu Sep 21 12:22:55 2006
@@ -44,7 +44,7 @@
extern "C"
llvm::LinkTimeOptimizer *createLLVMOptimizer()
{
- llvm::LinkTimeOptimizer *l = new llvm::LinkTimeOptimizer();
+ llvm::LTO *l = new llvm::LTO();
return l;
}
@@ -105,7 +105,7 @@
/// InputFilename is a LLVM bytecode file. If Module with InputFilename is
/// available then return it. Otherwise parseInputFilename.
Module *
-LinkTimeOptimizer::getModule(const std::string &InputFilename)
+LTO::getModule(const std::string &InputFilename)
{
Module *m = NULL;
@@ -122,7 +122,7 @@
/// InputFilename is a LLVM bytecode file. Reade this bytecode file and
/// set corresponding target triplet string.
void
-LinkTimeOptimizer::getTargetTriple(const std::string &InputFilename,
+LTO::getTargetTriple(const std::string &InputFilename,
std::string &targetTriple)
{
Module *m = getModule(InputFilename);
@@ -135,7 +135,7 @@
/// Collect external references in references vector.
/// Return LTO_READ_SUCCESS if there is no error.
enum LTOStatus
-LinkTimeOptimizer::readLLVMObjectFile(const std::string &InputFilename,
+LTO::readLLVMObjectFile(const std::string &InputFilename,
NameToSymbolMap &symbols,
std::set<std::string> &references)
{
@@ -310,7 +310,7 @@
/// native object file using OutputFilename
/// Return appropriate LTOStatus.
enum LTOStatus
-LinkTimeOptimizer::optimizeModules(const std::string &OutputFilename,
+LTO::optimizeModules(const std::string &OutputFilename,
std::vector<const char *> &exportList,
std::string &targetTriple)
{
More information about the llvm-commits
mailing list