]> granicus.if.org Git - clang/commitdiff
Update to reflect changes in parameter attribute api.
authorChris Lattner <sabre@nondot.org>
Wed, 12 Mar 2008 17:46:07 +0000 (17:46 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Mar 2008 17:46:07 +0000 (17:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48290 91177308-0d34-0410-b5e6-96231b3b80d8

CodeGen/CodeGenFunction.cpp

index 7d70e6c83105ee3970588543713155c25037b58b..49f23f27c3466b264d5c4317f1f205548044e2ab 100644 (file)
@@ -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);