//===- llvm/BinaryFormat/ELF.cpp - The ELF format ---------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/BinaryFormat/ELF.h" #include "llvm/ADT/StringSwitch.h" usingnamespacellvm; usingnamespaceELF; /// Convert an architecture name into ELF's e_machine value. uint16_t ELF::convertArchNameToEMachine(StringRef Arch) { … } /// Convert an ELF's e_machine value into an architecture name. StringRef ELF::convertEMachineToArchName(uint16_t EMachine) { … } uint8_t ELF::convertNameToOSABI(StringRef Name) { … } StringRef ELF::convertOSABIToName(uint8_t OSABI) { … }