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

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
This commit is contained in:
Matt Davis 2018-10-09 20:10:28 +00:00
parent 659cff37d6
commit 839ec9d9a4
1 changed files with 2 additions and 3 deletions

View 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;