aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
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.