[Alignment][NFC] Migrate Instructions to Align
[llvm-core.git] / include / llvm / Object / WindowsMachineFlag.h
blobacc6afc0329cbb3d91ab33aa6093cc7e3603ce76
1 //===- WindowsMachineFlag.h -------------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Functions for implementing the /machine: flag.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_TOOLDRIVERS_MACHINEFLAG_MACHINEFLAG_H
14 #define LLVM_TOOLDRIVERS_MACHINEFLAG_MACHINEFLAG_H
16 namespace llvm {
18 class StringRef;
19 namespace COFF {
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);
33 #endif