diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-13 06:06:01 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-13 06:06:01 +0000 |
commit | 8da17489aa1a66bee9a4ceda352c78bcbcd1ac56 (patch) | |
tree | c0ddbbe2bf74cb0f1eb2f88fb95e2c7df3ea6c97 /lib/ExecutionEngine/Interpreter/Interpreter.h | |
parent | 79390d48d0a7c4c5d4f6d8efd25b3c44535fff08 (diff) |
Change LLI's internal representation of va_list to a pointer to the next
argument to be returned by va_arg. This allows va_lists to be passed
between different LLVM procedures (though it is unlikely that an LLI
va_list would make sense to an external function, except by chance.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Interpreter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h index e9015a203e..380672ac72 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -146,6 +146,10 @@ public: AtExitHandlers.push_back(F); } + GenericValue *getFirstVarArg () { + return &(ECStack[ECStack.size () - 2].VarArgs[0]); + } + //FIXME: private: public: GenericValue executeGEPOperation(Value *Ptr, User::op_iterator I, |