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:
@@ -574,7 +574,7 @@ bool ObjectFilePECOFF::ParseSectionHeaders(
|
||||
}
|
||||
|
||||
llvm::StringRef ObjectFilePECOFF::GetSectionName(const section_header_t §) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user