void enableProfiling() { Profile = true; }
void enableTracing() { Trace = true; }
- void initializeExecutionEngine();
void handleUserInput();
// User Interation Methods...
// Code execution methods...
void callMethod (Method *Meth, const vector<GenericValue> &ArgVals);
- void callExternalMethod(Method *Meth, const vector<GenericValue> &ArgVals);
bool executeInstruction(); // Execute one instruction...
void stepInstruction(); // Do the 'step' command
void executeRetInst(ReturnInst *I, ExecutionContext &SF);
void executeBrInst(BranchInst *I, ExecutionContext &SF);
void executeAllocInst(AllocationInst *I, ExecutionContext &SF);
+ GenericValue callExternalMethod(Method *Meth,
+ const vector<GenericValue> &ArgVals);
void exitCalled(GenericValue GV);
// getCurrentMethod - Return the currently executing method
// option is provided, just return that option.
//
Value *ChooseOneOption(const string &Name, const vector<Value*> &Opts);
+
+
+ void initializeExecutionEngine();
+ void initializeExternalMethods();
};
#endif