diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-10 21:44:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-10 21:44:36 +0000 |
commit | b53e3e71383233ebb68a6a736cbe8af6d8065700 (patch) | |
tree | 5780b15211455a54c9086cb9be0c7aa72e6dda08 /lib/CodeGen/ABIInfo.h | |
parent | b4094ea09eee7d3a847cadf181a81efc99003daf (diff) |
Pull CodeGenFunction::EmitVAArg into target specific ABIInfo classes.
- Missed this file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ABIInfo.h')
-rw-r--r-- | lib/CodeGen/ABIInfo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/CodeGen/ABIInfo.h b/lib/CodeGen/ABIInfo.h index a52ed8450f..3de461242a 100644 --- a/lib/CodeGen/ABIInfo.h +++ b/lib/CodeGen/ABIInfo.h @@ -21,6 +21,7 @@ namespace clang { // down. Fortunately CGFunctionInfo has no real tie to CodeGen. namespace CodeGen { class CGFunctionInfo; + class CodeGenFunction; } /* FIXME: All of this stuff should be part of the target interface @@ -116,6 +117,16 @@ namespace clang { virtual void computeInfo(CodeGen::CGFunctionInfo &FI, ASTContext &Ctx) const = 0; + + /// EmitVAArg - Emit the target dependent code to load a value of + /// \arg Ty from the va_list pointed to by \arg VAListAddr. + + // FIXME: This is a gaping layering violation if we wanted to drop + // the ABI information any lower than CodeGen. Of course, for + // VAArg handling it has to be at this level; there is no way to + // abstract this out. + virtual llvm::Value *EmitVAArg(llvm::Value *VAListAddr, QualType Ty, + CodeGen::CodeGenFunction &CGF) const = 0; }; } // end namespace clang |