diff options
| author | Kazu Hirata <kazu@google.com> | 2024-06-09 15:33:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-09 15:33:00 -0700 |
| commit | 521238d19b53f4860aa07198ed84e9816d69d7a0 (patch) | |
| tree | 7dc1d53895c204495e57fa00270a24bb6a067502 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | dbe63e3d4dc9e4a53c95a6f8fd24c071d0a603e2 (diff) | |
[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.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
