diff options
author | Anders Carlsson <andersca@mac.com> | 2008-11-04 05:30:00 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-11-04 05:30:00 +0000 |
commit | ddf7cac45d85b73127adbbd91a2b28fc7291c57e (patch) | |
tree | a4e61dee55c101168d9afd23227c00bc9aa45a44 /lib/CodeGen/CodeGenFunction.h | |
parent | d9641f8dad2eb11ad5f035a41f88c4259b80cd90 (diff) |
Implement lowering of va_arg in clang directly. (This is 32-bit X86 only for now).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 797cbf42b2..ccc5008aee 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -281,6 +281,12 @@ public: /// EmitMemSetToZero - Generate code to memset a value of the given type to 0; void EmitMemSetToZero(llvm::Value *DestPtr, QualType Ty); + + // EmitVAArg - Generate code to get an argument from the passed in pointer + // and update it accordingly. The return value is a pointer to the argument. + // FIXME: We should be able to get rid of this method and use the va_arg + // instruction in LLVM instead once it works well enough. + llvm::Value *EmitVAArg(llvm::Value *VAListAddr, QualType Ty); //===--------------------------------------------------------------------===// // Declaration Emission |