diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-12 17:46:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-12 17:46:07 +0000 |
commit | 28842b7c0ddd307475d65325eed830e777c72c56 (patch) | |
tree | 6f6a2f21ac9d45159b6e02db75a975a53c2c0e28 /clang/CodeGen/CodeGenFunction.cpp | |
parent | 8a923e7c288cf383c2d44a23080d02579126c0a0 (diff) | |
download | bcm5719-llvm-28842b7c0ddd307475d65325eed830e777c72c56.tar.gz bcm5719-llvm-28842b7c0ddd307475d65325eed830e777c72c56.zip |
Update to reflect changes in parameter attribute api.
llvm-svn: 48290
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/CodeGen/CodeGenFunction.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp index 7d70e6c8310..49f23f27c34 100644 --- a/clang/CodeGen/CodeGenFunction.cpp +++ b/clang/CodeGen/CodeGenFunction.cpp @@ -19,7 +19,6 @@ #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" #include "llvm/Function.h" -#include "llvm/ParamAttrsList.h" #include "llvm/Analysis/Verifier.h" #include "llvm/Support/CFG.h" using namespace clang; @@ -92,9 +91,9 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD) { FuncAttrs |= llvm::ParamAttr::NoReturn; if (FuncAttrs) { - llvm::ParamAttrsVector ParamAttrsVec; - ParamAttrsVec.push_back(llvm::ParamAttrsWithIndex::get(0, FuncAttrs)); - CurFn->setParamAttrs(llvm::ParamAttrsList::get(ParamAttrsVec)); + llvm::ParamAttrsWithIndex PAWI = + llvm::ParamAttrsWithIndex::get(0, FuncAttrs); + CurFn->setParamAttrs(llvm::PAListPtr::get(&PAWI, 1)); } llvm::BasicBlock *EntryBB = new llvm::BasicBlock("entry", CurFn); |