File indexing completed on 2026-05-10 08:43:39
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef LLVM_ABI_BREAKING_CHECKS_H
0013 #define LLVM_ABI_BREAKING_CHECKS_H
0014
0015
0016 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 0
0017
0018
0019 #define LLVM_ENABLE_REVERSE_ITERATION 0
0020
0021
0022
0023 #if !defined(LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING) || !LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING
0024
0025
0026
0027 #if defined(_MSC_VER)
0028
0029 #define LLVM_XSTR(s) LLVM_STR(s)
0030 #define LLVM_STR(s) #s
0031 #pragma detect_mismatch("LLVM_ENABLE_ABI_BREAKING_CHECKS", LLVM_XSTR(LLVM_ENABLE_ABI_BREAKING_CHECKS))
0032 #undef LLVM_XSTR
0033 #undef LLVM_STR
0034 #elif defined(_WIN32) || defined(__CYGWIN__)
0035
0036 #elif defined(__cplusplus)
0037 #if !(defined(_AIX) && defined(__GNUC__) && !defined(__clang__))
0038 #define LLVM_HIDDEN_VISIBILITY __attribute__ ((visibility("hidden")))
0039 #else
0040
0041
0042 #define LLVM_HIDDEN_VISIBILITY
0043 #endif
0044 namespace llvm {
0045 #if LLVM_ENABLE_ABI_BREAKING_CHECKS
0046 extern int EnableABIBreakingChecks;
0047 LLVM_HIDDEN_VISIBILITY
0048 __attribute__((weak)) int *VerifyEnableABIBreakingChecks =
0049 &EnableABIBreakingChecks;
0050 #else
0051 extern int DisableABIBreakingChecks;
0052 LLVM_HIDDEN_VISIBILITY
0053 __attribute__((weak)) int *VerifyDisableABIBreakingChecks =
0054 &DisableABIBreakingChecks;
0055 #endif
0056 }
0057 #undef LLVM_HIDDEN_VISIBILITY
0058 #endif
0059
0060 #endif
0061
0062 #endif