[cfe-commits] r56537 - in /cfe/trunk/lib/CodeGen: CGCall.cpp CGCall.h

Devang Patel dpatel at apple.com
Tue Sep 23 18:01:37 PDT 2008


Author: dpatel
Date: Tue Sep 23 20:01:36 2008
New Revision: 56537

URL: http://llvm.org/viewvc/llvm-project?rev=56537&view=rev
Log:
s/ParamAttrsWithIndex/FnAttributeWithIndex/g

Rename to match changes done on llvm side.

Modified:
    cfe/trunk/lib/CodeGen/CGCall.cpp
    cfe/trunk/lib/CodeGen/CGCall.h

Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=56537&r1=56536&r2=56537&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Tue Sep 23 20:01:36 2008
@@ -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 @@
     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 @@
   }
 
   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 @@
     }
       
     if (ParamAttrs)
-      PAL.push_back(llvm::ParamAttrsWithIndex::get(Index, ParamAttrs));
+      PAL.push_back(llvm::FnAttributeWithIndex::get(Index, ParamAttrs));
     ++Index;
   }
 }

Modified: cfe/trunk/lib/CodeGen/CGCall.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.h?rev=56537&r1=56536&r2=56537&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.h (original)
+++ cfe/trunk/lib/CodeGen/CGCall.h Tue Sep 23 20:01:36 2008
@@ -21,7 +21,7 @@
 
 namespace llvm {
   class Function;
-  struct ParamAttrsWithIndex;
+  struct FnAttributeWithIndex;
   class Value;
 
   template<typename T, unsigned> class SmallVector;
@@ -35,7 +35,7 @@
   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.





More information about the cfe-commits mailing list