[Lldb-commits] [PATCH] D122603: [intelpt] Refactor timestamps out of IntelPTInstruction
Alisamar Husain via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 31 21:35:17 PDT 2022
zrthxn added inline comments.
================
Comment at: lldb/source/Plugins/Trace/intel-pt/DecodedThread.h:145
+ private:
+ friend class DecodedThread;
+
----------------
wallace wrote:
> jj10306 wrote:
> > nit: No need to friend the enclosing class since C++11 - https://en.cppreference.com/w/cpp/language/nested_types
> TIL!
We need the friend because we are using a private constructor from outside, in DecodedThread::CalculateTscRange and a couple other places. The idea is to let only DecodedThread create TscRange.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122603/new/
https://reviews.llvm.org/D122603
More information about the lldb-commits
mailing list