//===- WindowsMachineFlag.cpp ---------------------------------------------===// // // 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 // //===----------------------------------------------------------------------===// // // Functions for implementing the /machine: flag. // //===----------------------------------------------------------------------===// #include "llvm/Object/WindowsMachineFlag.h" #include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/BinaryFormat/COFF.h" #include "llvm/Support/ErrorHandling.h" usingnamespacellvm; // Returns /machine's value. COFF::MachineTypes llvm::getMachineType(StringRef S) { … } StringRef llvm::machineToStr(COFF::MachineTypes MT) { … }