From b768807c49a1c7085def099b848631856af766fa Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 10 Sep 2008 00:41:16 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56039 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 9f7b977276..e5acc505f5 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -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())); -- cgit v1.2.3-18-g5258