diff options
author | Rafael Auler <rafaelauler@fb.com> | 2022-11-04 13:08:31 -0700 |
---|---|---|
committer | Rafael Auler <rafaelauler@fb.com> | 2022-11-04 13:10:29 -0700 |
commit | 687ce3dec132e0a8d37da910d4dd470b72c70298 (patch) | |
tree | d62d8c20dfab7ab32f2031500efdfab5d76c73b5 /bolt/runtime | |
parent | c954cfeb57a1c8c0996a34da64243bc7f7fe1107 (diff) | |
download | llvm-687ce3dec132e0a8d37da910d4dd470b72c70298.tar.gz |
[BOLT][Hugify] Fix apple builds
Fix placement of ifdefs in hugify.cpp after D129107 landed.
Diffstat (limited to 'bolt/runtime')
-rw-r--r-- | bolt/runtime/hugify.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bolt/runtime/hugify.cpp b/bolt/runtime/hugify.cpp index d8a2d8b45f6c..05c1be4f2d70 100644 --- a/bolt/runtime/hugify.cpp +++ b/bolt/runtime/hugify.cpp @@ -6,8 +6,7 @@ // //===---------------------------------------------------------------------===// -#if defined (__x86_64__) -#if !defined(__APPLE__) +#if defined (__x86_64__) && !defined(__APPLE__) #include "common.h" @@ -136,7 +135,6 @@ static void hugifyForOldKernel(uint8_t *From, uint8_t *To) { __munmap(Mem, Size); } -#endif extern "C" void __bolt_hugify_self_impl() { uint8_t *HotStart = (uint8_t *)&__hot_start; |