Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1.  
  2. void CodeGenerator::run()
  3. {
  4.     InitializeNativeTarget();
  5.     ExecutionEngine *ee = ExecutionEngine::create(m_module, false);
  6.     if (ee == NULL)
  7.     {
  8.         std::cerr << "can't create execution engine" << std::endl;
  9.         return;
  10.     }
  11.  
  12.     std::vector<GenericValue> noargs;
  13.     GenericValue v = ee->runFunction(m_mainFunction, noargs);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement