Represent va_list in interpreter as a (ec-stack-depth . var-arg-index)
authorBrian Gaeke <gaeke@uiuc.edu>
Wed, 25 Feb 2004 23:01:48 +0000 (23:01 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Wed, 25 Feb 2004 23:01:48 +0000 (23:01 +0000)
commit9d20b71ecaffbda5311dfc486b0143d4a94cc502
tree54c16b6130671f8df3a14a8a94084749a4f216de
parent367b91d1bd0a6abf6dbf4052ff3125e485a154f8
Represent va_list in interpreter as a (ec-stack-depth . var-arg-index)
pair, and look up varargs in the execution stack every time, instead of
just pushing iterators (which can be invalidated during callFunction())
around.  (union GenericValue now has a "pair of uints" member, to support
this mechanism.) Fixes Bug 234.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11845 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/GenericValue.h
lib/ExecutionEngine/Interpreter/Execution.cpp