[compiler-rt] Remove unused formal parameters from allocateOneNode. NFC.
authorMatt Davis <Matthew.Davis@sony.com>
Tue, 9 Oct 2018 20:10:28 +0000 (20:10 +0000)
committerMatt Davis <Matthew.Davis@sony.com>
Tue, 9 Oct 2018 20:10:28 +0000 (20:10 +0000)
Summary: This is just a minor cleanup to the allocateOneNode interface.  The formals are no-longer used, so I just removed them.

Reviewers: davidxl, void

Reviewed By: davidxl

Subscribers: dberris, llvm-commits

Differential Revision: https://reviews.llvm.org/D52509

llvm-svn: 344073

compiler-rt/lib/profile/InstrProfilingValue.c

index 674a486..c7b01a5 100644 (file)
@@ -105,8 +105,7 @@ static int allocateValueProfileCounters(__llvm_profile_data *Data) {
   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 @@ instrumentTargetValueImpl(uint64_t TargetValue, void *Data,
     return;
   }
 
-  CurVNode = allocateOneNode(PData, CounterIndex, TargetValue);
+  CurVNode = allocateOneNode();
   if (!CurVNode)
     return;
   CurVNode->Value = TargetValue;