llvm.org GIT mirror llvm / fe085f3
Revert my previous check-in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45249 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 11 years ago
2 changed file(s) with 3 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
1818 #include
1919 #include
2020 #include
21
22 #define LLVM_LTO_VERSION 1
2321
2422 namespace llvm {
2523
149147 /// linker to use dlopen() interface to dynamically load LinkTimeOptimizer.
150148 /// extern "C" helps, because dlopen() interface uses name to find the symbol.
151149 extern "C"
152 llvm::LinkTimeOptimizer *createLLVMOptimizer(unsigned VERSION = LLVM_LTO_VERSION);
150 llvm::LinkTimeOptimizer *createLLVMOptimizer();
153151
154152 #endif
4444 using namespace llvm;
4545
4646 extern "C"
47 llvm::LinkTimeOptimizer *createLLVMOptimizer(unsigned VERSION)
48 {
49 if (VERSION != LLVM_LTO_VERSION)
50 return NULL;
51
47 llvm::LinkTimeOptimizer *createLLVMOptimizer()
48 {
5249 llvm::LTO *l = new llvm::LTO();
5350 return l;
5451 }