aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-07-11 16:38:44 -0700
committerGitHub <noreply@github.com>2024-07-11 16:38:44 -0700
commit6c8ff4cbb8d6ba6ff168c9209cfd1a7279995b40 (patch)
tree8f669fa79a052a33b0756042228e444f850a82a5 /clang/lib/CodeGen/CodeGenModule.cpp
parent46307f1a84bf832f32938c8ad2dc0605441a5319 (diff)
downloadllvm-6c8ff4cbb8d6ba6ff168c9209cfd1a7279995b40.zip
llvm-6c8ff4cbb8d6ba6ff168c9209cfd1a7279995b40.tar.gz
llvm-6c8ff4cbb8d6ba6ff168c9209cfd1a7279995b40.tar.bz2
[ProfileData] Take ArrayRef<InstrProfValueData> in addValueData (NFC) (#97363)
This patch fixes another place in ProfileData where we have a pointer to an array of InstrProfValueData and its length separately. addValueData is a bit unique in that it remaps incoming values in place before adding them to ValueSites. AFAICT, no caller of addValueData uses updated incoming values. With this patch, we add value data to ValueSites first and then remaps values there. This way, we can take ArrayRef<InstrProfValueData> as a parameter.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions