ABIBreak.cpp 811 B

123456789101112131415161718192021222324
  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. #include "llvm/Config/abi-breaking.h"
  9. #ifndef _MSC_VER
  10. namespace llvm {
  11. // One of these two variables will be referenced by a symbol defined in
  12. // llvm-config.h. We provide a link-time (or load time for DSO) failure when
  13. // there is a mismatch in the build configuration of the API client and LLVM.
  14. #if LLVM_ENABLE_ABI_BREAKING_CHECKS
  15. int EnableABIBreakingChecks;
  16. #else
  17. int DisableABIBreakingChecks;
  18. #endif
  19. } // end namespace llvm
  20. #endif