diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-10 00:32:18 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-10 00:32:18 +0000 |
commit | 76c8eb75b1f36646ff163e64f9f5f406494695a0 (patch) | |
tree | b396f645db65f74767d48493cc7229c9dab147bb /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c6db3ad15f41e9719ac946c0162ef98623d96afb (diff) | |
download | bcm5719-llvm-76c8eb75b1f36646ff163e64f9f5f406494695a0.tar.gz bcm5719-llvm-76c8eb75b1f36646ff163e64f9f5f406494695a0.zip |
Tweak CGCall functions:
- Move actual param attr list creation to
CodeGenFunction::ConstructParamAttrList.
- Make ReturnTypeUsesSret static.
llvm-svn: 56038
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 8f7ae2eb56a..9f7b9772761 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -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())); |