llvm.org GIT mirror llvm / c923435
Make the creation functions take an error string. This will help the ExecutionEngine report errors on creation (like bytecode stuff) and also help to get rid of exception handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34886 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7575 // To avoid having libexecutionengine depend on the JIT and interpreter
7676 // libraries, the JIT and Interpreter set these functions to ctor pointers
7777 // at startup time if they are linked in.
78 typedef ExecutionEngine *(*EECtorFn)(ModuleProvider*);
78 typedef ExecutionEngine *(*EECtorFn)(ModuleProvider*, std::string*);
7979 static EECtorFn JITCtor, InterpCtor;
8080
8181 public:
105105 /// create - This is the factory method for creating an execution engine which
106106 /// is appropriate for the current machine.
107107 static ExecutionEngine *create(ModuleProvider *MP,
108 bool ForceInterpreter = false);
108 bool ForceInterpreter = false,
109 std::string *ErrorStr = 0);
109110
110111 /// runFunction - Execute the specified function with the specified arguments,
111112 /// and return the result.