aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-10 00:32:18 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-10 00:32:18 +0000
commit5323a4b0a1c248fa2ffdf886bb41a5d8fba71d2d (patch)
treeca15547af9db5224793dd3bcd68d7d2a8fcc2926 /lib/CodeGen/CodeGenModule.cpp
parent3913f184c84135fb4612743f1faa6c1edd2dd055 (diff)
Tweak CGCall functions:
- Move actual param attr list creation to CodeGenFunction::ConstructParamAttrList. - Make ReturnTypeUsesSret static. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index 8f7ae2eb56..9f7b977276 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -214,7 +214,10 @@ static void SetGlobalValueAttributes(const Decl *D,
static void SetFunctionParamAttrs(const CGFunctionInfo &Info, llvm::Function *F) {
ParamAttrListType ParamAttrList;
- Info.constructParamAttrList(ParamAttrList);
+ CodeGenFunction::ConstructParamAttrList(Info.getDecl(),
+ Info.argtypes_begin(),
+ Info.argtypes_end(),
+ ParamAttrList);
F->setParamAttrs(llvm::PAListPtr::get(ParamAttrList.begin(),
ParamAttrList.size()));