Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GenericValue CodeGenContext::runCode() {
- InitializeNativeTarget();
- std::cout << "Running code...\n";
- // ExistingModuleProvider *mp = new ExistingModuleProvider(module);
- std::string err;
- ExecutionEngine *ee = ExecutionEngine::create(module, false, &err);
- std::cout << err << std::endl << ee << std::endl;
- /* vector<GenericValue> noargs;
- GenericValue v = ee->runFunction(mainFunction, noargs);
- std::cout << "Code was run.\n";
- return v;*/
- return GenericValue();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement