diff options
author | Devang Patel <dpatel@apple.com> | 2006-09-21 17:22:55 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-09-21 17:22:55 +0000 |
commit | c7cfbc58ad88f127df6949791401969a09da560f (patch) | |
tree | 9a1016510809da6d2551d7c9536f03a414a48c99 /tools/lto | |
parent | d1aed7aaf7047873b8878502859905159eaf5362 (diff) | |
download | external_llvm-c7cfbc58ad88f127df6949791401969a09da560f.zip external_llvm-c7cfbc58ad88f127df6949791401969a09da560f.tar.gz external_llvm-c7cfbc58ad88f127df6949791401969a09da560f.tar.bz2 |
Use abstract class to facilitate dlopen() interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 7f1ec1a..cd3cc34 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -44,7 +44,7 @@ using namespace llvm; extern "C" llvm::LinkTimeOptimizer *createLLVMOptimizer() { - llvm::LinkTimeOptimizer *l = new llvm::LinkTimeOptimizer(); + llvm::LTO *l = new llvm::LTO(); return l; } @@ -105,7 +105,7 @@ findExternalRefs(Value *value, std::set<std::string> &references, /// 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 @@ LinkTimeOptimizer::getModule(const std::string &InputFilename) /// 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 @@ LinkTimeOptimizer::getTargetTriple(const std::string &InputFilename, /// 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 @@ static enum LTOStatus lto_optimize(Module *M, std::ostream &Out, /// 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) { |