[all-commits] [llvm/llvm-project] 521238: [ProfileData] Refactor VTableNamePtr and Compresse...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Sun Jun 9 15:33:21 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 521238d19b53f4860aa07198ed84e9816d69d7a0
https://github.com/llvm/llvm-project/commit/521238d19b53f4860aa07198ed84e9816d69d7a0
Author: Kazu Hirata <kazu at google.com>
Date: 2024-06-09 (Sun, 09 Jun 2024)
Changed paths:
M llvm/include/llvm/ProfileData/InstrProfReader.h
M llvm/lib/ProfileData/InstrProfReader.cpp
Log Message:
-----------
[ProfileData] Refactor VTableNamePtr and CompressedVTableNamesLen (NFC) (#94859)
VTableNamePtr and CompressedVTableNamesLen are always used together to
create a StringRef in getSymtab.
We can create the StringRef ahead of time in readHeader. This way,
IndexedInstrProfReader becomes a tiny bit simpler with fewer member
variables. Also, StringRef default-constructs itself with its Data
and Length set to nullptr and 0, respectively, which is exactly what
we need.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list