Files
clang-p2996/llvm/lib/ProfileData/InstrProf.cpp
Mingming Liu c803c29039 [nfc][InstrProf]Remove 'offsetOf' when parsing indexed profiles (#93346)
- In `Header::readFromBuffer`, read the buffer in the forward direction by using `readNext`.
- When compute the header size, spell out the constant.

With the changes above, we can remove `offsetOf` in InstrProf.cpp

---------

Co-authored-by: Kazu Hirata <kazu@google.com>
2024-05-30 12:44:29 -07:00

61 KiB