diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-10 00:41:16 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-10 00:41:16 +0000 |
commit | c68897d2c30d1fa8648b31c592c55b86368d16d5 (patch) | |
tree | 8f0b34d09d511ebeaf1eca7be891d0733aa2c4cf /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 76c8eb75b1f36646ff163e64f9f5f406494695a0 (diff) | |
download | bcm5719-llvm-c68897d2c30d1fa8648b31c592c55b86368d16d5.tar.gz bcm5719-llvm-c68897d2c30d1fa8648b31c592c55b86368d16d5.zip |
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9f7b9772761..e5acc505f5b 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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())); |