[ThinLTO] Add code comment. NFC
[llvm-complete.git] / lib / Support / ABIBreak.cpp
blob247b635e02b8d0510e5693114f8cfb4cfd8819c4
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 //===----------------------------------------------------------------------===//
9 #include "llvm/Config/abi-breaking.h"
11 #ifndef _MSC_VER
12 namespace llvm {
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
23 } // end namespace llvm
24 #endif