summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-06-09 15:33:00 -0700
committerGitHub <noreply@github.com>2024-06-09 15:33:00 -0700
commit521238d19b53f4860aa07198ed84e9816d69d7a0 (patch)
tree7dc1d53895c204495e57fa00270a24bb6a067502 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentdbe63e3d4dc9e4a53c95a6f8fd24c071d0a603e2 (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