Displaying 1 result from an estimated 1 matches for "23e4e9de".
2019 Jan 26
2
How to pass arbitrary arguments to runFunctionAsMain?
Hi,
I'm trying to call the function main passing arbitrary parameters. My code
is something like:
Please note that MyInterpreter extends Interpreter
StringRef filename = argv[1];
std::unique_ptr<Module> m(parseIRFile(filename, error, context));
MyInterpreter * v = new MyInterpreter(std::move(m));
v->finalizeObject();
errs() << "Done\n";