search for: optimizefunc

Displaying 2 results from an estimated 2 matches for "optimizefunc".

2006 Aug 16
2
[LLVMdev] Weird behavior of llvm-ld
...llowing snippet of ${LLVM_SRC}/tools/llvm-ld/Optimize.cpp (near line 180): std::vector<std::string> plugins = LoadableModules; for (std::vector<std::string>::iterator I = plugins.begin(), E = plugins.end(); I != E; ++I) { sys::DynamicLibrary dll(I->c_str()); typedef void (*OptimizeFunc)(PassManager&,int); OptimizeFunc OF = OptimizeFunc( (intptr_t)dll.GetAddressOfSymbol("RunOptimizations")); if (OF == 0) { throw std::string("Optimization Module '") + *I + "' is missing the RunOptimizations symbol"; } (...
2006 Aug 16
0
[LLVMdev] Weird behavior of llvm-ld
...LVM_SRC}/tools/llvm-ld/Optimize.cpp (near line 180): > std::vector<std::string> plugins = LoadableModules; > for (std::vector<std::string>::iterator I = plugins.begin(), E = > plugins.end(); I != E; ++I) { > sys::DynamicLibrary dll(I->c_str()); > typedef void (*OptimizeFunc)(PassManager&,int); > OptimizeFunc OF = OptimizeFunc( > (intptr_t)dll.GetAddressOfSymbol("RunOptimizations")); > if (OF == 0) { > throw std::string("Optimization Module '") + *I + > "' is missing the RunOptimizations...