diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-09-05 18:42:01 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-09-05 18:42:01 +0000 |
commit | a7669038fc8ab1447bc1f68108b30996adf50ef4 (patch) | |
tree | bb30cf4fc477b9d52f92be78b6b89e6c6b47e978 /llvm/lib/ExecutionEngine/JIT/VM.h | |
parent | 15ad3f07db8df51636369c51d9aae83550fcd1bc (diff) | |
download | bcm5719-llvm-a7669038fc8ab1447bc1f68108b30996adf50ef4.tar.gz bcm5719-llvm-a7669038fc8ab1447bc1f68108b30996adf50ef4.zip |
Make CreateArgv part of lli rather than part of ExecutionEngine.
Switch Interpreter and JIT's "run" methods to take a Function and a vector of
GenericValues.
Move (almost all of) the stuff that constructs a canonical call to main()
into lli (new methods "callAsMain", "makeStringVector").
Nuke getCurrentExecutablePath(), enableTracing(), getCurrentFunction(),
isStopped(), and many dead decls from interpreter.
Add linux strdup() support to interpreter.
Make interpreter's atexit handler runner and JIT's runAtExitHandlers() look
more alike, in preparation for refactoring.
atexit() is spelled "atexit", not "at_exit".
llvm-svn: 8366
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/VM.h')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/VM.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/VM.h b/llvm/lib/ExecutionEngine/JIT/VM.h index 764afcf66fe..9a7a645a4ee 100644 --- a/llvm/lib/ExecutionEngine/JIT/VM.h +++ b/llvm/lib/ExecutionEngine/JIT/VM.h @@ -33,9 +33,8 @@ public: /// run - Start execution with the specified function and arguments. /// - virtual int run(const std::string &FnName, - const std::vector<std::string> &Args, - const char ** envp); + virtual GenericValue run(Function *F, + const std::vector<GenericValue> &ArgValues); /// getPointerToNamedFunction - This method returns the address of the /// specified function by using the dlsym function call. As such it is only |