Skip to content

Commit 5b89a10

Browse files
authored
[mono] Remove unused x86/arm mach-support code (#101339)
We no longer support Apple x86 or 32bit ARM targets so we can remove that code.
1 parent 76293f8 commit 5b89a10

File tree

5 files changed

+0
-248
lines changed

5 files changed

+0
-248
lines changed

src/mono/mono/utils/CMakeLists.txt

-6
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,9 @@ set(utils_arch_sources mach-support-unknown.c)
187187
elseif(HOST_AMD64)
188188
set(utils_arch_sources
189189
mach-support-amd64.c)
190-
elseif(HOST_X86)
191-
set(utils_arch_sources
192-
mach-support-x86.c)
193190
elseif(HOST_ARM64)
194191
set(utils_arch_sources
195192
mach-support-arm64.c)
196-
elseif(HOST_ARM)
197-
set(utils_arch_sources
198-
mach-support-arm.c)
199193
else()
200194
#message(FATAL_ERROR "")
201195
endif()

src/mono/mono/utils/mach-support-arm.c

-104
This file was deleted.

src/mono/mono/utils/mach-support-arm64.c

-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
#include "utils/mono-compiler.h"
2121
#include "mach-support.h"
2222

23-
/* _mcontext.h now defines __darwin_mcontext32, not __darwin_mcontext, starting with Xcode 5.1 */
24-
#ifdef _STRUCT_MCONTEXT32
25-
#define __darwin_mcontext __darwin_mcontext32
26-
#endif
27-
2823
int
2924
mono_mach_arch_get_mcontext_size (void)
3025
{

src/mono/mono/utils/mach-support-x86.c

-128
This file was deleted.

src/mono/mono/utils/mach-support.h

-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
#include <mach/thread_status.h>
1919

2020
#define MONO_MACH_ARCH_SUPPORTED 1
21-
#if defined(__arm__)
22-
typedef _STRUCT_MCONTEXT *mcontext_t;
23-
#elif defined(__aarch64__)
24-
typedef _STRUCT_MCONTEXT64 *mcontext_t;
25-
#endif
2621

2722
int mono_mach_arch_get_mcontext_size (void);
2823
void mono_mach_arch_thread_states_to_mcontext (thread_state_t state, thread_state_t fpstate, void *context);

0 commit comments

Comments
 (0)