1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
Mehdi Amini cfa184f7d2 Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch
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
2016-11-28 22:23:53 +00:00
..
2016-09-11 22:55:46 +00:00
2015-08-10 04:22:09 +00:00
2016-10-18 17:50:39 +00:00
2016-04-18 09:17:29 +00:00
2015-09-24 00:23:07 +00:00
2016-10-23 19:39:16 +00:00
2016-11-20 13:47:59 +00:00
2015-09-21 15:59:41 +00:00
2016-11-23 19:03:54 +00:00