Update the Linux and NetBSD Host libraries for
2165c36be445 which
removed DataBufferLLVM::GetChars. These files are compiled conditionally
based on the host platform.
if (!buffer_sp)
return ArchSpec();
- uint8_t exe_class =
- llvm::object::getElfArchType(
- {buffer_sp->GetChars(), size_t(buffer_sp->GetByteSize())})
- .first;
+ uint8_t exe_class = llvm::object::getElfArchType(
+ {reinterpret_cast<char *>(buffer_sp->GetBytes()),
+ size_t(buffer_sp->GetByteSize())})
+ .first;
switch (exe_class) {
case llvm::ELF::ELFCLASS32:
auto buffer_sp = FileSystem::Instance().CreateDataBuffer(
process_info.GetExecutableFile(), 0x20, 0);
if (buffer_sp) {
- uint8_t exe_class =
- llvm::object::getElfArchType(
- {buffer_sp->GetChars(), size_t(buffer_sp->GetByteSize())})
- .first;
+ uint8_t exe_class = llvm::object::getElfArchType(
+ {reinterpret_cast<char *>(buffer_sp->GetBytes()),
+ size_t(buffer_sp->GetByteSize())})
+ .first;
switch (exe_class) {
case llvm::ELF::ELFCLASS32: