Displaying 1 result from an estimated 1 matches for "disablegvcompilation".
2012 Dec 13
0
[LLVMdev] Memory leaks after llvm_shutdown
...es)){
cout << "Linking error! " << llvm_linker.getLastError()<< "\n";
return 3;
}
}
Module *m = llvm_linker.releaseModule();
string err;
ExecutionEngine *ee = EngineBuilder(m).setEngineKind(EngineKind::JIT).setErrorStr(&err).create();
ee->DisableGVCompilation(false);
ee->DisableLazyCompilation(true);
Function* func = ee->FindFunctionNamed(argv[1]);
if(!func){
cout<<"cannot find entry point\n";
return -1;
}
typedef void (*PFN)();
PFN pfn = reinterpret_cast<PFN>(ee->getPointerToFunction(func));
pfn();
ee->...