Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:49

0001 //===-- SafeMachO.h -----------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 #ifndef LLDB_HOST_SAFEMACHO_H
0009 #define LLDB_HOST_SAFEMACHO_H
0010 
0011 // This header file is required to work around collisions between the defines
0012 // in mach/machine.h, and enum members of the same name in llvm's MachO.h.  If
0013 // you want to use llvm/Support/MachO.h, use this file instead. The caveats
0014 // are: 1) You can only use the MachO.h enums, you can't use the defines.  That
0015 // won't make a difference since the values
0016 //    are the same.
0017 // 2) If you need any header file that relies on mach/machine.h, you must
0018 // include that first. 3) This isn't a total solution, it doesn't undef every
0019 // define that MachO.h has borrowed from various system headers,
0020 //    only the ones that come from mach/machine.h because that is the one we
0021 //    ended up pulling in from various places.
0022 //
0023 
0024 #undef CPU_ARCH_MASK
0025 #undef CPU_ARCH_ABI64
0026 #undef CPU_ARCH_ABI64_32
0027 
0028 #undef CPU_TYPE_ANY
0029 #undef CPU_TYPE_X86
0030 #undef CPU_TYPE_I386
0031 #undef CPU_TYPE_X86_64
0032 #undef CPU_TYPE_MC98000
0033 #undef CPU_TYPE_ARM
0034 #undef CPU_TYPE_ARM64
0035 #undef CPU_TYPE_ARM64_32
0036 #undef CPU_TYPE_SPARC
0037 #undef CPU_TYPE_POWERPC
0038 #undef CPU_TYPE_POWERPC64
0039 
0040 #undef CPU_SUBTYPE_MASK
0041 #undef CPU_SUBTYPE_LIB64
0042 
0043 #undef CPU_SUBTYPE_MULTIPLE
0044 
0045 #undef CPU_SUBTYPE_I386_ALL
0046 #undef CPU_SUBTYPE_386
0047 #undef CPU_SUBTYPE_486
0048 #undef CPU_SUBTYPE_486SX
0049 #undef CPU_SUBTYPE_586
0050 #undef CPU_SUBTYPE_PENT
0051 #undef CPU_SUBTYPE_PENTPRO
0052 #undef CPU_SUBTYPE_PENTII_M3
0053 #undef CPU_SUBTYPE_PENTII_M5
0054 #undef CPU_SUBTYPE_CELERON
0055 #undef CPU_SUBTYPE_CELERON_MOBILE
0056 #undef CPU_SUBTYPE_PENTIUM_3
0057 #undef CPU_SUBTYPE_PENTIUM_3_M
0058 #undef CPU_SUBTYPE_PENTIUM_3_XEON
0059 #undef CPU_SUBTYPE_PENTIUM_M
0060 #undef CPU_SUBTYPE_PENTIUM_4
0061 #undef CPU_SUBTYPE_PENTIUM_4_M
0062 #undef CPU_SUBTYPE_ITANIUM
0063 #undef CPU_SUBTYPE_ITANIUM_2
0064 #undef CPU_SUBTYPE_XEON
0065 #undef CPU_SUBTYPE_XEON_MP
0066 
0067 #undef CPU_SUBTYPE_X86_ALL
0068 #undef CPU_SUBTYPE_X86_64_ALL
0069 #undef CPU_SUBTYPE_X86_ARCH1
0070 #undef CPU_SUBTYPE_X86_64_H
0071 
0072 #undef CPU_SUBTYPE_INTEL
0073 #undef CPU_SUBTYPE_INTEL_FAMILY
0074 #undef CPU_SUBTYPE_INTEL_FAMILY_MAX
0075 #undef CPU_SUBTYPE_INTEL_MODEL
0076 #undef CPU_SUBTYPE_INTEL_MODEL_ALL
0077 
0078 #undef CPU_SUBTYPE_ARM
0079 #undef CPU_SUBTYPE_ARM_ALL
0080 #undef CPU_SUBTYPE_ARM_V4T
0081 #undef CPU_SUBTYPE_ARM_V6
0082 #undef CPU_SUBTYPE_ARM_V5
0083 #undef CPU_SUBTYPE_ARM_V5TEJ
0084 #undef CPU_SUBTYPE_ARM_XSCALE
0085 #undef CPU_SUBTYPE_ARM_V7
0086 
0087 #undef CPU_SUBTYPE_ARM_V7S
0088 #undef CPU_SUBTYPE_ARM_V7K
0089 #undef CPU_SUBTYPE_ARM_V6M
0090 #undef CPU_SUBTYPE_ARM_V7M
0091 #undef CPU_SUBTYPE_ARM_V7EM
0092 
0093 #undef CPU_SUBTYPE_ARM64E
0094 #undef CPU_SUBTYPE_ARM64_32_V8
0095 #undef CPU_SUBTYPE_ARM64_V8
0096 #undef CPU_SUBTYPE_ARM64_ALL
0097 
0098 #undef CPU_SUBTYPE_SPARC_ALL
0099 
0100 #undef CPU_SUBTYPE_POWERPC
0101 #undef CPU_SUBTYPE_POWERPC_ALL
0102 #undef CPU_SUBTYPE_POWERPC_601
0103 #undef CPU_SUBTYPE_POWERPC_602
0104 #undef CPU_SUBTYPE_POWERPC_603
0105 #undef CPU_SUBTYPE_POWERPC_603e
0106 #undef CPU_SUBTYPE_POWERPC_603ev
0107 #undef CPU_SUBTYPE_POWERPC_604
0108 #undef CPU_SUBTYPE_POWERPC_604e
0109 #undef CPU_SUBTYPE_POWERPC_620
0110 #undef CPU_SUBTYPE_POWERPC_750
0111 #undef CPU_SUBTYPE_POWERPC_7400
0112 #undef CPU_SUBTYPE_POWERPC_7450
0113 #undef CPU_SUBTYPE_POWERPC_970
0114 
0115 #undef CPU_SUBTYPE_MC980000_ALL
0116 #undef CPU_SUBTYPE_MC98601
0117 
0118 #undef VM_PROT_READ
0119 #undef VM_PROT_WRITE
0120 #undef VM_PROT_EXECUTE
0121 
0122 #undef ARM_DEBUG_STATE
0123 #undef ARM_EXCEPTION_STATE
0124 #undef ARM_EXCEPTION_STATE64
0125 #undef ARM_EXCEPTION_STATE64_COUNT
0126 #undef ARM_THREAD_STATE
0127 #undef ARM_THREAD_STATE64
0128 #undef ARM_THREAD_STATE64_COUNT
0129 #undef ARM_THREAD_STATE_COUNT
0130 #undef ARM_VFP_STATE
0131 #undef ARN_THREAD_STATE_NONE
0132 #undef PPC_EXCEPTION_STATE
0133 #undef PPC_EXCEPTION_STATE64
0134 #undef PPC_FLOAT_STATE
0135 #undef PPC_THREAD_STATE
0136 #undef PPC_THREAD_STATE64
0137 #undef PPC_THREAD_STATE_NONE
0138 #undef PPC_VECTOR_STATE
0139 #undef x86_DEBUG_STATE
0140 #undef x86_DEBUG_STATE32
0141 #undef x86_DEBUG_STATE64
0142 #undef x86_EXCEPTION_STATE
0143 #undef x86_EXCEPTION_STATE32
0144 #undef x86_EXCEPTION_STATE64
0145 #undef x86_EXCEPTION_STATE64_COUNT
0146 #undef x86_EXCEPTION_STATE_COUNT
0147 #undef x86_FLOAT_STATE
0148 #undef x86_FLOAT_STATE32
0149 #undef x86_FLOAT_STATE64
0150 #undef x86_FLOAT_STATE64_COUNT
0151 #undef x86_FLOAT_STATE_COUNT
0152 #undef x86_THREAD_STATE
0153 #undef x86_THREAD_STATE32
0154 #undef x86_THREAD_STATE32_COUNT
0155 #undef x86_THREAD_STATE64
0156 #undef x86_THREAD_STATE64_COUNT
0157 #undef x86_THREAD_STATE_COUNT
0158 
0159 #include "llvm/BinaryFormat/MachO.h"
0160 
0161 #endif // LLDB_HOST_SAFEMACHO_H