[compiler-rt] r253510 - Fix format in comments.

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 18 14:09:41 PST 2015


Author: davidxl
Date: Wed Nov 18 16:09:41 2015
New Revision: 253510

URL: http://llvm.org/viewvc/llvm-project?rev=253510&view=rev
Log:
Fix format in comments.

Modified:
    compiler-rt/trunk/lib/profile/InstrProfiling.c

Modified: compiler-rt/trunk/lib/profile/InstrProfiling.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfiling.c?rev=253510&r1=253509&r2=253510&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfiling.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfiling.c Wed Nov 18 16:09:41 2015
@@ -29,7 +29,8 @@ __attribute__((visibility("hidden"))) ui
 }
 
 /* Return the number of bytes needed to add to SizeInBytes to make it
-   the result a multiple of 8.  */
+ *   the result a multiple of 8.
+ */
 __attribute__((visibility("hidden"))) uint8_t
 __llvm_profile_get_num_padding_bytes(uint64_t SizeInBytes) {
   return 7 & (sizeof(uint64_t) - SizeInBytes % sizeof(uint64_t));
@@ -70,13 +71,14 @@ __attribute__((visibility("hidden"))) vo
   }
 }
 
-// Total number of value profile data in bytes.
+/* Total number of value profile data in bytes. */
 static uint64_t TotalValueDataSize = 0;
 
 /* Allocate an array that holds the pointers to the linked lists of
-   value profile counter nodes. The number of element of the array
-   is the total number of value profile sites instrumented. Returns
-   0 if allocation fails.  */
+ * value profile counter nodes. The number of element of the array
+ * is the total number of value profile sites instrumented. Returns
+ *  0 if allocation fails.
+ */
 
 static int allocateValueProfileCounters(__llvm_profile_data *Data) {
   uint64_t NumVSites = 0;
@@ -92,10 +94,11 @@ static int allocateValueProfileCounters(
     free(Mem);
     return 0;
   }
-  /* In the raw format, there will be an value count array preceding
-     the value profile data. The element type of the array is uint8_t,
-   and there is one element in array per value site. The element
-   stores the number of values profiled for the corresponding site. */
+  /*  In the raw format, there will be an value count array preceding
+   *  the value profile data. The element type of the array is uint8_t,
+   *  and there is one element in array per value site. The element
+   *  stores the number of values profiled for the corresponding site.
+   */
   uint8_t Padding = __llvm_profile_get_num_padding_bytes(NumVSites);
   __sync_fetch_and_add(&TotalValueDataSize, NumVSites + Padding);
   return 1;




More information about the llvm-commits mailing list