DirectXShaderCompiler/include/llvm/Config
Brian Favela 5f931c3f14
Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch (#5380)
The macro LLVM_ENABLE_ABI_BREAKING_CHECKS is moved to a new header
abi-breaking.h, from llvm-config.h. Only headers that are using the
macro are including this new header.

LLVM will define a symbol, either EnableABIBreakingChecks or
DisableABIBreakingChecks depending on the configuration setting for
LLVM_ABI_BREAKING_CHECKS.

The abi-breaking.h header will add weak references to these symbols in
every clients that includes this header. This should ensure that a
mismatch triggers a link failure (or a load time failure for DSO).

On MSVC, the pragma "detect_mismatch" is used instead.

Differential Revision: https://reviews.llvm.org/D26876

llvm-svn: 288082

Co-authored-by: Mehdi Amini <mehdi.amini@apple.com>
2023-06-30 13:15:17 -04:00
..
AsmParsers.def.in Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
AsmPrinters.def.in Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
Disassemblers.def.in Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
Targets.def.in Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
abi-breaking.h.cmake Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch (#5380) 2023-06-30 13:15:17 -04:00
config.h.cmake Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch (#5380) 2023-06-30 13:15:17 -04:00
config.h.in Fix build failure caused by clang version 11.1.0 in Linux (#4191) 2022-01-18 16:34:06 -05:00
llvm-config.h.cmake Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch (#5380) 2023-06-30 13:15:17 -04:00
llvm-config.h.in Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00