[llvm-commits] [llvm-gcc-4.0] r40678 - /llvm-gcc-4.0/trunk/gcc/llvm-types.cpp

Christopher Lamb christopher.lamb at gmail.com
Wed Aug 1 11:16:29 PDT 2007


Author: clamb
Date: Wed Aug  1 13:16:29 2007
New Revision: 40678

URL: http://llvm.org/viewvc/llvm-project?rev=40678&view=rev
Log:
Clean up comments and 80 col violations.

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

Modified: llvm-gcc-4.0/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/llvm-types.cpp?rev=40678&r1=40677&r2=40678&view=diff

==============================================================================
--- llvm-gcc-4.0/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.0/trunk/gcc/llvm-types.cpp Wed Aug  1 13:16:29 2007
@@ -784,9 +784,12 @@
     if (const Type *Ty = GET_TYPE_LLVM(type))
       return Ty;
     
-    // No declaration to pass through, passing NULL
+    // No declaration to pass through, passing NULL.
     unsigned CallingConv;
-    return TypeDB.setType(type, ConvertFunctionType(type, NULL, NULL, CallingConv));
+    return TypeDB.setType(type, ConvertFunctionType(type, 
+                                                    NULL, 
+                                                    NULL, 
+                                                    CallingConv));
   }
   case ARRAY_TYPE: {
     if (const Type *Ty = GET_TYPE_LLVM(type))
@@ -979,7 +982,7 @@
   LLVM_TARGET_INIT_REGPARM(local_regparam, type);
 #endif // LLVM_TARGET_ENABLE_REGPARM
   
-  // Check if we have a corresponding decl to inspect
+  // Check if we have a corresponding decl to inspect.
   tree DeclArgs = (decl) ? DECL_ARGUMENTS(decl) : NULL;
   // Loop over all of the arguments, adding them as we go.
   tree Args = TYPE_ARG_TYPES(type);
@@ -1017,7 +1020,7 @@
 
     // Compute noalias attributes. If we have a decl for the function
     // inspect it for restrict qualifiers, otherwise try the argument
-    // types
+    // types.
     tree RestrictArgTy = (DeclArgs) ? TREE_TYPE(DeclArgs) : ArgTy;
     if (TREE_CODE(RestrictArgTy) == POINTER_TYPE ||
         TREE_CODE(RestrictArgTy) == REFERENCE_TYPE) {





More information about the llvm-commits mailing list