aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-10 00:41:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-10 00:41:16 +0000
commitb768807c49a1c7085def099b848631856af766fa (patch)
tree21d82bbb3c1170b398415fb86346836e698c7bd0 /lib/CodeGen/CodeGenModule.h
parent5323a4b0a1c248fa2ffdf886bb41a5d8fba71d2d (diff)
Tweak CGCall functions again:
- Realized these functions will eventually need access to more data, moved to CodeGenModule. Eventually they should probably live together in some other helper class. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index bcb464b66a..4976e3474a 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -19,6 +19,8 @@
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/StringMap.h"
+#include "CGCall.h"
+
namespace llvm {
class Module;
class Constant;
@@ -215,6 +217,18 @@ public:
void SetMethodAttributes(const ObjCMethodDecl *MD,
llvm::Function *F);
+ void SetFunctionParamAttrs(const CGFunctionInfo &Info,
+ llvm::Function *F);
+
+ /// ReturnTypeUsesSret - Return true iff the given type uses 'sret'
+ /// when used as a return type.
+ bool ReturnTypeUsesSret(QualType RetTy);
+
+ void ConstructParamAttrList(const Decl *TargetDecl,
+ const ArgTypeIterator begin,
+ const ArgTypeIterator end,
+ ParamAttrListType &PAL);
+
private:
/// SetFunctionAttributesForDefinition - Set function attributes
/// specific to a function definition.