Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bolt
diff options
context:
space:
mode:
authorVladislav Khmelevsky <och95@yandex.ru>2022-02-05 01:33:11 +0300
committerVladislav Khmelevsky <och95@yandex.ru>2022-02-08 03:42:47 +0300
commit823ebcc7a809ccdfc2b5027c329635b5c65afecd (patch)
tree1d652e9f6e2c4c1aecf7a2afa936b928e6ddec04 /bolt
parent126663211adfa862b3eb87daf244acd66cb6e9e2 (diff)
[BOLT] Fix runtime osx cross-compile build
Place include elf.h under !apple condition Differential Revision: https://reviews.llvm.org/D119038
Diffstat (limited to 'bolt')
-rw-r--r--bolt/runtime/common.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/bolt/runtime/common.h b/bolt/runtime/common.h
index 1f055b044150..f13cde9b2e98 100644
--- a/bolt/runtime/common.h
+++ b/bolt/runtime/common.h
@@ -11,6 +11,12 @@
#include <cstddef>
#include <cstdint>
+#include "config.h"
+
+#ifdef HAVE_ELF_H
+#include <elf.h>
+#endif
+
#else
typedef __SIZE_TYPE__ size_t;
@@ -32,12 +38,6 @@ typedef int int32_t;
#endif
-#include "config.h"
-
-#ifdef HAVE_ELF_H
-#include <elf.h>
-#endif
-
// Save all registers while keeping 16B stack alignment
#define SAVE_ALL \
"push %%rax\n" \