[PATCH] D119038: [BOLT] Fix bolt_rt_instr for osx build condition
Vladislav Khmelevsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 7 10:24:24 PST 2022
yota9 updated this revision to Diff 406522.
yota9 marked an inline comment as done.
yota9 added a comment.
Fix header include
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119038/new/
https://reviews.llvm.org/D119038
Files:
bolt/runtime/common.h
Index: bolt/runtime/common.h
===================================================================
--- bolt/runtime/common.h
+++ 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 @@
#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" \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119038.406522.patch
Type: text/x-patch
Size: 642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220207/e208a513/attachment.bin>
More information about the llvm-commits
mailing list