Unverified Commit 521238d1 authored by Kazu Hirata's avatar Kazu Hirata Committed by GitHub
Browse files

[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.
parent dbe63e3d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment