[PATCH] D52509: [compiler-rt] Remove unused formal parameters from allocateOneNode. NFC.

Matt Davis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 9 13:12:23 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT344073: [compiler-rt] Remove unused formal parameters from allocateOneNode. NFC. (authored by mattd, committed by ).
Herald added a subscriber: Sanitizers.

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D52509

Files:
  lib/profile/InstrProfilingValue.c


Index: lib/profile/InstrProfilingValue.c
===================================================================
--- lib/profile/InstrProfilingValue.c
+++ lib/profile/InstrProfilingValue.c
@@ -105,8 +105,7 @@
   return 1;
 }
 
-static ValueProfNode *allocateOneNode(__llvm_profile_data *Data, uint32_t Index,
-                                      uint64_t Value) {
+static ValueProfNode *allocateOneNode(void) {
   ValueProfNode *Node;
 
   if (!hasStaticCounters)
@@ -205,7 +204,7 @@
     return;
   }
 
-  CurVNode = allocateOneNode(PData, CounterIndex, TargetValue);
+  CurVNode = allocateOneNode();
   if (!CurVNode)
     return;
   CurVNode->Value = TargetValue;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52509.168862.patch
Type: text/x-patch
Size: 665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181009/d6b348fe/attachment.bin>


More information about the llvm-commits mailing list