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