Tweak CGCall functions:

- Move actual param attr list creation to
   CodeGenFunction::ConstructParamAttrList.
 - Make ReturnTypeUsesSret static.

llvm-svn: 56038
This commit is contained in:
Daniel Dunbar
2008-09-10 00:32:18 +00:00
parent c6db3ad15f
commit 76c8eb75b1
4 changed files with 82 additions and 66 deletions

View File

@@ -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()));