aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorEllis Hoag <ellis.sparky.hoag@gmail.com>2021-12-29 13:36:28 -0800
committerEllis Hoag <ellis.sparky.hoag@gmail.com>2022-01-14 11:29:11 -0800
commitf21473752bd6ef85a4da5d51948ce21f7226f81b (patch)
tree4ab4401bd77b7b60d46bfcd7976329505d4b151e /clang/unittests/Format/FormatTestJava.cpp
parentacb8de565eaa2638d18362085085deb4628435b4 (diff)
downloadllvm-f21473752bd6ef85a4da5d51948ce21f7226f81b.zip
llvm-f21473752bd6ef85a4da5d51948ce21f7226f81b.tar.gz
llvm-f21473752bd6ef85a4da5d51948ce21f7226f81b.tar.bz2
[InstrProf][NFC] Do not assume size of counter type
Existing code tended to assume that counters had type `uint64_t` and computed size from the number of counters. Fix this code to directly compute the counters size in number of bytes where possible. When the number of counters is needed, use `__llvm_profile_counter_entry_size()` or `getCounterTypeSize()`. In a later diff these functions will depend on the profile mode. Change the meaning of `DataSize` and `CountersSize` to make them more clear. * `DataSize` (`CountersSize`) - the size of the data (counter) section in bytes. * `NumData` (`NumCounters`) - the number of data (counter) entries. Reviewed By: kyulee Differential Revision: https://reviews.llvm.org/D116179
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions