]> granicus.if.org Git - clang/commitdiff
s/ParamAttrsWithIndex/FnAttributeWithIndex/g
authorDevang Patel <dpatel@apple.com>
Wed, 24 Sep 2008 01:01:36 +0000 (01:01 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 24 Sep 2008 01:01:36 +0000 (01:01 +0000)
Rename to match changes done on llvm side.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56537 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCall.cpp
lib/CodeGen/CGCall.h

index acaf2f180bcb8f3b2edf7b5e8e4966697902e5de..11e2ec214249e9e9afbf52b65be6043b19bcf365 100644 (file)
@@ -19,7 +19,7 @@
 #include "clang/AST/Decl.h"
 #include "clang/AST/DeclObjC.h"
 #include "llvm/ADT/StringExtras.h"
-#include "llvm/ParameterAttributes.h"
+#include "llvm/Attributes.h"
 using namespace clang;
 using namespace CodeGen;
 
@@ -536,7 +536,7 @@ void CodeGenModule::ConstructParamAttrList(const Decl *TargetDecl,
     break;
 
   case ABIArgInfo::StructRet:
-    PAL.push_back(llvm::ParamAttrsWithIndex::get(Index, 
+    PAL.push_back(llvm::FnAttributeWithIndex::get(Index, 
                                                  llvm::ParamAttr::StructRet|
                                                  llvm::ParamAttr::NoAlias));
     ++Index;
@@ -551,7 +551,7 @@ void CodeGenModule::ConstructParamAttrList(const Decl *TargetDecl,
   }
 
   if (FuncAttrs)
-    PAL.push_back(llvm::ParamAttrsWithIndex::get(0, FuncAttrs));
+    PAL.push_back(llvm::FnAttributeWithIndex::get(0, FuncAttrs));
   for (++begin; begin != end; ++begin) {
     QualType ParamType = *begin;
     unsigned ParamAttrs = 0;
@@ -589,7 +589,7 @@ void CodeGenModule::ConstructParamAttrList(const Decl *TargetDecl,
     }
       
     if (ParamAttrs)
-      PAL.push_back(llvm::ParamAttrsWithIndex::get(Index, ParamAttrs));
+      PAL.push_back(llvm::FnAttributeWithIndex::get(Index, ParamAttrs));
     ++Index;
   }
 }
index ffb9baaebb5896cb0867e10991871ab3b02be2b7..53e20ba59968bb081cf3f414139403d01db88bfc 100644 (file)
@@ -21,7 +21,7 @@
 
 namespace llvm {
   class Function;
-  struct ParamAttrsWithIndex;
+  struct FnAttributeWithIndex;
   class Value;
 
   template<typename T, unsigned> class SmallVector;
@@ -35,7 +35,7 @@ namespace clang {
   class VarDecl;
 
 namespace CodeGen {
-  typedef llvm::SmallVector<llvm::ParamAttrsWithIndex, 8> ParamAttrListType;
+  typedef llvm::SmallVector<llvm::FnAttributeWithIndex, 8> ParamAttrListType;
 
   /// CallArgList - Type for representing both the value and type of
   /// arguments in a call.