mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
[BOLT][Hugify] Fix apple builds
Fix placement of ifdefs in hugify.cpp after D129107 landed.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user