diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-10 00:41:16 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-10 00:41:16 +0000 |
commit | c68897d2c30d1fa8648b31c592c55b86368d16d5 (patch) | |
tree | 8f0b34d09d511ebeaf1eca7be891d0733aa2c4cf /clang/lib/CodeGen/CodeGenModule.h | |
parent | 76c8eb75b1f36646ff163e64f9f5f406494695a0 (diff) | |
download | bcm5719-llvm-c68897d2c30d1fa8648b31c592c55b86368d16d5.tar.gz bcm5719-llvm-c68897d2c30d1fa8648b31c592c55b86368d16d5.zip |
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.
llvm-svn: 56039
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index bcb464b66ae..4976e3474a6 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/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. |