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
This commit is contained in:
Daniel Dunbar
2008-09-10 00:41:16 +00:00
parent 76c8eb75b1
commit c68897d2c3
5 changed files with 28 additions and 21 deletions

View File

@@ -212,12 +212,12 @@ static void SetGlobalValueAttributes(const Decl *D,
}
}
static void SetFunctionParamAttrs(const CGFunctionInfo &Info, llvm::Function *F) {
void CodeGenModule::SetFunctionParamAttrs(const CGFunctionInfo &Info,
llvm::Function *F) {
ParamAttrListType ParamAttrList;
CodeGenFunction::ConstructParamAttrList(Info.getDecl(),
Info.argtypes_begin(),
Info.argtypes_end(),
ParamAttrList);
ConstructParamAttrList(Info.getDecl(),
Info.argtypes_begin(), Info.argtypes_end(),
ParamAttrList);
F->setParamAttrs(llvm::PAListPtr::get(ParamAttrList.begin(),
ParamAttrList.size()));