Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GenericValue CodeGenContext::runCode() {
  2.     InitializeNativeTarget();
  3.     std::cout << "Running code...\n";
  4. //  ExistingModuleProvider *mp = new ExistingModuleProvider(module);
  5.     std::string err;
  6.     ExecutionEngine *ee = ExecutionEngine::create(module, false, &err);
  7.     std::cout << err << std::endl << ee << std::endl;
  8. /*  vector<GenericValue> noargs;
  9.     GenericValue v = ee->runFunction(mainFunction, noargs);
  10.     std::cout << "Code was run.\n";
  11.     return v;*/
  12.     return GenericValue();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement