llvm::object::getElfArchType

Return the ELF class and data encoding from an object buffer's ident.

Synopsis

Declared in <llvm/Object/ELF.h>

std::pair<unsigned char, unsigned char>
getElfArchType(StringRef Object);

Description

Subclasses of ELFFile may need this for template instantiation.

Return Value

A pair of ELF class and data encoding bytes.

Parameters

NameDescription
ObjectRaw ELF object bytes.