File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 17
17
#include " compiler.h"
18
18
#include < type_traits>
19
19
20
+ // / This macro should be used to define tags that will be associated with
21
+ // / handlers in the JIT process, and call can be used to define tags f
22
+ #define ORC_RT_JIT_DISPATCH_TAG (X ) \
23
+ extern " C" char X; \
24
+ char X = 0 ;
25
+
20
26
// / Opaque struct for external symbols.
21
27
struct __orc_rt_Opaque {};
22
28
Original file line number Diff line number Diff line change @@ -25,14 +25,9 @@ using namespace __orc_rt;
25
25
using namespace __orc_rt ::macho;
26
26
27
27
// Declare function tags for functions in the JIT process.
28
- extern " C" char __orc_rt_macho_get_initializers_tag;
29
- char __orc_rt_macho_get_initializers_tag = 0 ;
30
-
31
- extern " C" char __orc_rt_macho_get_deinitializers_tag;
32
- char __orc_rt_macho_get_deinitializers_tag = 0 ;
33
-
34
- extern " C" char __orc_rt_macho_symbol_lookup_tag;
35
- char __orc_rt_macho_symbol_lookup_tag = 0 ;
28
+ ORC_RT_JIT_DISPATCH_TAG (__orc_rt_macho_get_initializers_tag)
29
+ ORC_RT_JIT_DISPATCH_TAG(__orc_rt_macho_get_deinitializers_tag)
30
+ ORC_RT_JIT_DISPATCH_TAG(__orc_rt_macho_symbol_lookup_tag)
36
31
37
32
// eh-frame registration functions.
38
33
// We expect these to be available for all processes.
You can’t perform that action at this time.
0 commit comments