Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17"

This reverts commit ef82063207.

- It conflicts with the existing llvm::size in STLExtras, which will now
  never be called.
- Calling it without llvm:: breaks C++17 compat
This commit is contained in:
Benjamin Kramer
2022-01-26 16:55:53 +01:00
parent 297bbf1062
commit f15014ff54
143 changed files with 382 additions and 386 deletions

View File

@@ -77,7 +77,7 @@ static_assert((sizeof(g_format_infos) / sizeof(g_format_infos[0])) ==
kNumFormats,
"All formats must have a corresponding info entry.");
static uint32_t g_num_format_infos = llvm::size(g_format_infos);
static uint32_t g_num_format_infos = llvm::array_lengthof(g_format_infos);
static bool GetFormatFromFormatChar(char format_char, Format &format) {
for (uint32_t i = 0; i < g_num_format_infos; ++i) {