File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-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
+ #include "llvm/Support/Compiler.h"
16
+
15
17
/* Define to enable checks that alter the LLVM C++ ABI */
16
18
#cmakedefine01 LLVM_ENABLE_ABI_BREAKING_CHECKS
17
19
43
45
#endif
44
46
namespace llvm {
45
47
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
46
- extern int EnableABIBreakingChecks ;
48
+ LLVM_ABI extern int EnableABIBreakingChecks ;
47
49
LLVM_HIDDEN_VISIBILITY
48
50
__attribute__((weak )) int * VerifyEnableABIBreakingChecks =
49
51
& EnableABIBreakingChecks ;
50
52
#else
51
- extern int DisableABIBreakingChecks ;
53
+ LLVM_ABI extern int DisableABIBreakingChecks ;
52
54
LLVM_HIDDEN_VISIBILITY
53
55
__attribute__((weak )) int * VerifyDisableABIBreakingChecks =
54
56
& DisableABIBreakingChecks ;
You can’t perform that action at this time.
0 commit comments