diff options
author | Chris Lattner <sabre@nondot.org> | 2012-05-28 01:47:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-05-28 01:47:53 +0000 |
commit | a2db6f2bd8bed59cce5b4bec3a136816338915e0 (patch) | |
tree | d650fec80f33ad9dcc1760164127cecfc878dfad /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 3cb6f83ebbde1d6d33651dcab64d5207900c4114 (diff) | |
download | bcm5719-llvm-a2db6f2bd8bed59cce5b4bec3a136816338915e0.tar.gz bcm5719-llvm-a2db6f2bd8bed59cce5b4bec3a136816338915e0.zip |
adjust to mainline llvm API change.
llvm-svn: 157557
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 0da493ffb55..d1f2face78d 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -476,8 +476,7 @@ void CodeGenModule::SetLLVMFunctionAttributes(const Decl *D, unsigned CallingConv; AttributeListType AttributeList; ConstructAttributeList(Info, D, AttributeList, CallingConv); - F->setAttributes(llvm::AttrListPtr::get(AttributeList.begin(), - AttributeList.size())); + F->setAttributes(llvm::AttrListPtr::get(AttributeList)); F->setCallingConv(static_cast<llvm::CallingConv::ID>(CallingConv)); } @@ -1735,8 +1734,7 @@ static void ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old, ArgList.clear(); if (!NewCall->getType()->isVoidTy()) NewCall->takeName(CI); - NewCall->setAttributes(llvm::AttrListPtr::get(AttrVec.begin(), - AttrVec.end())); + NewCall->setAttributes(llvm::AttrListPtr::get(AttrVec)); NewCall->setCallingConv(CI->getCallingConv()); // Finally, remove the old call, replacing any uses with the new one. |