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

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