summaryrefslogtreecommitdiff
path: root/include/llvm/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-26 06:50:15 +0000
committerChris Lattner <sabre@nondot.org>2003-12-26 06:50:15 +0000
commite5dbbf2bddf7fc28d9f63a5e978af12184c80ada (patch)
tree9bbdb4d165651572fd3405621cbd50f88e99c3f1 /include/llvm/ExecutionEngine
parent269a42811bf20f17a69600905cc5c03f68773043 (diff)
downloadllvm-e5dbbf2bddf7fc28d9f63a5e978af12184c80ada.tar.gz
llvm-e5dbbf2bddf7fc28d9f63a5e978af12184c80ada.tar.bz2
llvm-e5dbbf2bddf7fc28d9f63a5e978af12184c80ada.tar.xz
New method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index b3f4f9fb45..c376ef71b7 100644
--- a/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -63,6 +63,13 @@ public:
virtual GenericValue runFunction(Function *F,
const std::vector<GenericValue> &ArgValues) = 0;
+ /// runFunctionAsMain - This is a helper function which wraps runFunction to
+ /// handle the common task of starting up main with the specified argc, argv,
+ /// and envp parameters.
+ int runFunctionAsMain(Function *Fn, const std::vector<std::string> &argv,
+ const char * const * envp);
+
+
void addGlobalMapping(const GlobalValue *GV, void *Addr) {
void *&CurVal = GlobalAddress[GV];
assert((CurVal == 0 || Addr == 0) && "GlobalMapping already established!");