1 //===- WindowsMachineFlag.h -------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Functions for implementing the /machine: flag.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_TOOLDRIVERS_MACHINEFLAG_MACHINEFLAG_H
14 #define LLVM_TOOLDRIVERS_MACHINEFLAG_MACHINEFLAG_H
20 enum MachineTypes
: unsigned;
23 // Returns a user-readable string for ARMNT, ARM64, AMD64, I386.
24 // Other MachineTypes values must not be passed in.
25 StringRef
machineToStr(COFF::MachineTypes MT
);
27 // Maps /machine: arguments to a MachineTypes value.
28 // Only returns ARMNT, ARM64, AMD64, I386, or IMAGE_FILE_MACHINE_UNKNOWN.
29 COFF::MachineTypes
getMachineType(StringRef S
);