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).
This commit is contained in:
serge-sans-paille
2022-01-26 10:11:12 -05:00
parent 99ae5c13f6
commit ef82063207
143 changed files with 386 additions and 382 deletions

View File

@@ -574,7 +574,7 @@ bool ObjectFilePECOFF::ParseSectionHeaders(
}
llvm::StringRef ObjectFilePECOFF::GetSectionName(const section_header_t &sect) {
llvm::StringRef hdr_name(sect.name, llvm::array_lengthof(sect.name));
llvm::StringRef hdr_name(sect.name, llvm::size(sect.name));
hdr_name = hdr_name.split('\0').first;
if (hdr_name.consume_front("/")) {
lldb::offset_t stroff;