File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 12
12
#ifndef LLVM_ABI_BREAKING_CHECKS_H
13
13
#define LLVM_ABI_BREAKING_CHECKS_H
14
14
15
+ // Compiler.h is required for LLVM_ABI definition.
16
+ #include "llvm/Support/Compiler.h"
17
+
15
18
/* Define to enable checks that alter the LLVM C++ ABI */
16
19
#cmakedefine01 LLVM_ENABLE_ABI_BREAKING_CHECKS
17
20
43
46
#endif
44
47
namespace llvm {
45
48
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
46
- extern int EnableABIBreakingChecks ;
49
+ LLVM_ABI extern int EnableABIBreakingChecks ;
47
50
LLVM_HIDDEN_VISIBILITY
48
51
__attribute__((weak )) int * VerifyEnableABIBreakingChecks =
49
52
& EnableABIBreakingChecks ;
50
53
#else
51
- extern int DisableABIBreakingChecks ;
54
+ LLVM_ABI extern int DisableABIBreakingChecks ;
52
55
LLVM_HIDDEN_VISIBILITY
53
56
__attribute__((weak )) int * VerifyDisableABIBreakingChecks =
54
57
& DisableABIBreakingChecks ;
You can’t perform that action at this time.
0 commit comments