diff options
author | serge-sans-paille <sguelton@redhat.com> | 2022-01-26 10:11:12 -0500 |
---|---|---|
committer | serge-sans-paille <sguelton@redhat.com> | 2022-01-26 16:17:45 +0100 |
commit | ef8206320769ad31422a803a0d6de6077fd231d2 (patch) | |
tree | 06ca6445f38939d6a543e0a64c2ede55497a06cd /llvm/unittests/ProfileData/CoverageMappingTest.cpp | |
parent | 99ae5c13f64e138d6b17c00bd01c87c3ce58cb6b (diff) | |
download | llvm-ef8206320769ad31422a803a0d6de6077fd231d2.zip llvm-ef8206320769ad31422a803a0d6de6077fd231d2.tar.gz llvm-ef8206320769ad31422a803a0d6de6077fd231d2.tar.bz2 |
Rename llvm::array_lengthof into llvm::size to match std::size from C++17
As a conquence move llvm::array_lengthof from STLExtras.h to
STLForwardCompat.h (which is included by STLExtras.h so no build
breakage expected).
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/CoverageMappingTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp index cc4c953..b9fd4d3 100644 --- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp +++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp @@ -292,7 +292,7 @@ TEST_P(CoverageMappingTest, basic_write_read) { TEST_P(CoverageMappingTest, correct_deserialize_for_more_than_two_files) { const char *FileNames[] = {"bar", "baz", "foo"}; - static const unsigned N = array_lengthof(FileNames); + static const unsigned N = size(FileNames); startFunction("func", 0x1234); for (unsigned I = 0; I < N; ++I) @@ -321,7 +321,7 @@ TEST_P(CoverageMappingTest, load_coverage_for_more_than_two_files) { ProfileWriter.addRecord({"func", 0x1234, {0}}, Err); const char *FileNames[] = {"bar", "baz", "foo"}; - static const unsigned N = array_lengthof(FileNames); + static const unsigned N = size(FileNames); startFunction("func", 0x1234); for (unsigned I = 0; I < N; ++I) |