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 1212#ifndef LLVM_ABI_BREAKING_CHECKS_H
1313#define LLVM_ABI_BREAKING_CHECKS_H
1414
15+ // Compiler.h is required for LLVM_ABI definition.
16+ #include "llvm/Support/Compiler.h"
17+
1518/* Define to enable checks that alter the LLVM C++ ABI */
1619#cmakedefine01 LLVM_ENABLE_ABI_BREAKING_CHECKS
1720
4346#endif
4447namespace llvm {
4548#if LLVM_ENABLE_ABI_BREAKING_CHECKS
46- extern int EnableABIBreakingChecks ;
49+ LLVM_ABI extern int EnableABIBreakingChecks ;
4750LLVM_HIDDEN_VISIBILITY
4851__attribute__((weak )) int * VerifyEnableABIBreakingChecks =
4952 & EnableABIBreakingChecks ;
5053#else
51- extern int DisableABIBreakingChecks ;
54+ LLVM_ABI extern int DisableABIBreakingChecks ;
5255LLVM_HIDDEN_VISIBILITY
5356__attribute__((weak )) int * VerifyDisableABIBreakingChecks =
5457 & DisableABIBreakingChecks ;
You can’t perform that action at this time.
0 commit comments