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:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user