Skip to content

Commit

Permalink
[compiler-rt] Remove unused formal parameters from allocateOneNode. NFC.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Matt Davis authored and Matt Davis committed Oct 9, 2018
1 parent 659cff3 commit 839ec9d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compiler-rt/lib/profile/InstrProfilingValue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -205,7 +204,7 @@ instrumentTargetValueImpl(uint64_t TargetValue, void *Data,
return;
}

CurVNode = allocateOneNode(PData, CounterIndex, TargetValue);
CurVNode = allocateOneNode();
if (!CurVNode)
return;
CurVNode->Value = TargetValue;
Expand Down

0 comments on commit 839ec9d

Please sign in to comment.