[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 Sep 25 10:34:13 PDT 2018
mattd created this revision.
mattd added reviewers: davidxl, void.
Herald added a subscriber: dberris.
This is just a minor cleanup to the allocateOneNode interface. The formals are no-longer used, so I just removed them.
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.166943.patch
Type: text/x-patch
Size: 665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180925/4bd4af08/attachment.bin>
More information about the llvm-commits
mailing list