[PATCH] D108435: [CSSPGO] split context string II - reader/writer changes

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 20 16:21:12 PDT 2021


hoy added inline comments.


================
Comment at: llvm/lib/ProfileData/SampleProfReader.cpp:506
+ErrorOr<SampleContext>
+SampleProfileReaderBinary::readNameFromTable(bool IsContextName) {
+  auto FName(readStringFromTable());
----------------
hoy wrote:
> wmi wrote:
> > This param is unused. Write it as readNameFromTable(bool /* IsContextName */) to make it more explicit. 
> Sounds good.
Actually I can only do that in the header file for the function declaration. The function definition needs a real name for param.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108435/new/

https://reviews.llvm.org/D108435



More information about the llvm-commits mailing list