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