diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-11 22:24:53 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-11 22:24:53 +0000 |
commit | bac7c250c9b098ee3d637c8ed77da62e860d9244 (patch) | |
tree | 24c6dbb1cd7ef5ad61717d5f81c6b82714af68b8 /lib/CodeGen/CodeGenTypes.h | |
parent | 5b9bd2137ebef350af803c634e3fdf5d74678100 (diff) |
Add CallingConvention argument to CGFunctionInfo.
- Currently unused.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.h')
-rw-r--r-- | lib/CodeGen/CodeGenTypes.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/lib/CodeGen/CodeGenTypes.h b/lib/CodeGen/CodeGenTypes.h index 0e73d481cd..53df106820 100644 --- a/lib/CodeGen/CodeGenTypes.h +++ b/lib/CodeGen/CodeGenTypes.h @@ -172,21 +172,28 @@ public: /// replace the 'opaque' type we previously made for it if applicable. void UpdateCompletedType(const TagDecl *TD); - /// getFunctionInfo - Get the CGFunctionInfo for this function signature. - const CGFunctionInfo &getFunctionInfo(QualType RetTy, - const llvm::SmallVector<QualType,16> - &ArgTys); - +private: const CGFunctionInfo &getFunctionInfo(const FunctionNoProtoType *FTNP); const CGFunctionInfo &getFunctionInfo(const FunctionProtoType *FTP); + +public: + /// getFunctionInfo - Get the function info for the specified function decl. const CGFunctionInfo &getFunctionInfo(const FunctionDecl *FD); const CGFunctionInfo &getFunctionInfo(const CXXMethodDecl *MD); const CGFunctionInfo &getFunctionInfo(const ObjCMethodDecl *MD); + + /// getFunctionInfo - Get the function info for a function described by a + /// return type and argument types. If the calling convention is not + /// specified, the "C" calling convention will be used. const CGFunctionInfo &getFunctionInfo(QualType ResTy, - const CallArgList &Args); -public: + const CallArgList &Args, + unsigned CallingConvention = 0); const CGFunctionInfo &getFunctionInfo(QualType ResTy, - const FunctionArgList &Args); + const FunctionArgList &Args, + unsigned CallingConvention = 0); + const CGFunctionInfo &getFunctionInfo(QualType RetTy, + const llvm::SmallVector<QualType, 16> &ArgTys, + unsigned CallingConvention = 0); public: // These are internal details of CGT that shouldn't be used externally. /// addFieldInfo - Assign field number to field FD. |