Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CodeGenerator::run()
- {
- InitializeNativeTarget();
- ExecutionEngine *ee = ExecutionEngine::create(m_module, false);
- if (ee == NULL)
- {
- std::cerr << "can't create execution engine" << std::endl;
- return;
- }
- std::vector<GenericValue> noargs;
- GenericValue v = ee->runFunction(m_mainFunction, noargs);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement