[llvm-commits] [llvm-gcc-4.2] r56536 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

Devang Patel dpatel at apple.com
Tue Sep 23 17:55:16 PDT 2008


Author: dpatel
Date: Tue Sep 23 19:55:16 2008
New Revision: 56536

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

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=56536&r1=56535&r2=56536&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Tue Sep 23 19:55:16 2008
@@ -1058,18 +1058,18 @@
   // Builtins are always prototyped, so this isn't one.
   ABIConverter.HandleReturnType(ReturnType, current_function_decl, false);
 
-  SmallVector<ParamAttrsWithIndex, 8> Attrs;
+  SmallVector<FnAttributeWithIndex, 8> Attrs;
 
   // Compute whether the result needs to be zext or sext'd.
   Attributes RAttributes = HandleArgumentExtension(ReturnType);
 
   if (RAttributes != ParamAttr::None)
-    Attrs.push_back(ParamAttrsWithIndex::get(0, RAttributes));
+    Attrs.push_back(FnAttributeWithIndex::get(0, RAttributes));
 
   // If this function returns via a shadow argument, the dest loc is passed
   // in as a pointer.  Mark that pointer as struct-ret and noalias.
   if (ABIConverter.isShadowReturn())
-    Attrs.push_back(ParamAttrsWithIndex::get(ArgTys.size(),
+    Attrs.push_back(FnAttributeWithIndex::get(ArgTys.size(),
                                     ParamAttr::StructRet | ParamAttr::NoAlias));
 
   std::vector<const Type*> ScalarArgs;
@@ -1077,7 +1077,7 @@
     // Pass the static chain as the first parameter.
     ABIConverter.HandleArgument(TREE_TYPE(static_chain), ScalarArgs);
     // Mark it as the chain argument.
-    Attrs.push_back(ParamAttrsWithIndex::get(ArgTys.size(),
+    Attrs.push_back(FnAttributeWithIndex::get(ArgTys.size(),
                                              ParamAttr::Nest));
   }
 
@@ -1093,7 +1093,7 @@
     Attributes |= HandleArgumentExtension(ArgTy);
 
     if (Attributes != ParamAttr::None)
-      Attrs.push_back(ParamAttrsWithIndex::get(ArgTys.size(), Attributes));
+      Attrs.push_back(FnAttributeWithIndex::get(ArgTys.size(), Attributes));
   }
 
   PAL = PAListPtr::get(Attrs.begin(), Attrs.end());
@@ -1118,7 +1118,7 @@
 #endif
 
   // Compute attributes for return type (and function attributes).
-  SmallVector<ParamAttrsWithIndex, 8> Attrs;
+  SmallVector<FnAttributeWithIndex, 8> Attrs;
   Attributes RAttributes = ParamAttr::None;
 
   int flags = flags_from_decl_or_type(decl ? decl : type);
@@ -1162,12 +1162,12 @@
   RAttributes |= HandleArgumentExtension(TREE_TYPE(type));
 
   if (RAttributes != ParamAttr::None)
-    Attrs.push_back(ParamAttrsWithIndex::get(0, RAttributes));
+    Attrs.push_back(FnAttributeWithIndex::get(0, RAttributes));
 
   // If this function returns via a shadow argument, the dest loc is passed
   // in as a pointer.  Mark that pointer as struct-ret and noalias.
   if (ABIConverter.isShadowReturn())
-    Attrs.push_back(ParamAttrsWithIndex::get(ArgTypes.size(),
+    Attrs.push_back(FnAttributeWithIndex::get(ArgTypes.size(),
                                     ParamAttr::StructRet | ParamAttr::NoAlias));
 
   std::vector<const Type*> ScalarArgs;
@@ -1175,7 +1175,7 @@
     // Pass the static chain as the first parameter.
     ABIConverter.HandleArgument(TREE_TYPE(static_chain), ScalarArgs);
     // Mark it as the chain argument.
-    Attrs.push_back(ParamAttrsWithIndex::get(ArgTypes.size(),
+    Attrs.push_back(FnAttributeWithIndex::get(ArgTypes.size(),
                                              ParamAttr::Nest));
   }
 
@@ -1240,7 +1240,7 @@
     
     if (Attributes != ParamAttr::None) {
       HasByVal |= Attributes & ParamAttr::ByVal;
-      Attrs.push_back(ParamAttrsWithIndex::get(ArgTypes.size(), Attributes));
+      Attrs.push_back(FnAttributeWithIndex::get(ArgTypes.size(), Attributes));
     }
       
     if (DeclArgs)





More information about the llvm-commits mailing list