diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-12 00:59:20 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-12 00:59:20 +0000 |
commit | ca6408c3176783f0b29da4679a08512aa05f0c73 (patch) | |
tree | 018521391d4c5cd7bbc4d6ce0958cd2ce502f0bd /lib/CodeGen/CodeGenModule.h | |
parent | 7814e6d6645d587891293d59ecf6576defcfac92 (diff) |
Change CodeGenModule::ConstructTypeAttributes to return the calling convention
to use, and allow the ABI implementation to override the calling convention.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index aa92269406..fa32aaf7ef 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -384,9 +384,19 @@ public: /// as a return type. bool ReturnTypeUsesSret(const CGFunctionInfo &FI); + /// ConstructAttributeList - Get the LLVM attributes and calling convention to + /// use for a particular function type. + /// + /// \param Info - The function type information. + /// \param TargetDecl - The decl these attributes are being constructed + /// for. If supplied the attributes applied to this decl may contribute to the + /// function attributes and calling convention. + /// \param PAL [out] - On return, the attribute list to use. + /// \param CallingConv [out] - On return, the LLVM calling convention to use. void ConstructAttributeList(const CGFunctionInfo &Info, const Decl *TargetDecl, - AttributeListType &PAL); + AttributeListType &PAL, + unsigned &CallingConv); const char *getMangledName(const GlobalDecl &D); |