Path: blob/main/contrib/llvm-project/llvm/lib/Support/ABIBreak.cpp
35234 views
//===----- lib/Support/ABIBreak.cpp - EnableABIBreakingChecks -------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "llvm/Config/abi-breaking.h"910#ifndef _MSC_VER11namespace llvm {1213// One of these two variables will be referenced by a symbol defined in14// llvm-config.h. We provide a link-time (or load time for DSO) failure when15// there is a mismatch in the build configuration of the API client and LLVM.16#if LLVM_ENABLE_ABI_BREAKING_CHECKS17int EnableABIBreakingChecks;18#else19int DisableABIBreakingChecks;20#endif2122} // end namespace llvm23#endif242526