1 //===----- lib/Support/ABIBreak.cpp - EnableABIBreakingChecks -------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "llvm/Config/abi-breaking.h" 10 11 #ifndef _MSC_VER 12 namespace llvm { 13 14 // One of these two variables will be referenced by a symbol defined in 15 // llvm-config.h. We provide a link-time (or load time for DSO) failure when 16 // there is a mismatch in the build configuration of the API client and LLVM. 17 #if LLVM_ENABLE_ABI_BREAKING_CHECKS 18 int EnableABIBreakingChecks; 19 #else 20 int DisableABIBreakingChecks; 21 #endif 22 23 } // end namespace llvm 24 #endif 25