mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-27 07:12:06 +00:00
Revert "Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch"
This reverts commit r287352, LLDB CI is broken. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287374 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9df5d1c65c
commit
c0aec7f2f5
@ -80,25 +80,4 @@
|
|||||||
/* LLVM version string */
|
/* LLVM version string */
|
||||||
#define LLVM_VERSION_STRING "${PACKAGE_VERSION}"
|
#define LLVM_VERSION_STRING "${PACKAGE_VERSION}"
|
||||||
|
|
||||||
// ABI_BREAKING_CHECKS protection: provides link-time failure when clients build
|
|
||||||
// mismatch with LLVM
|
|
||||||
#if defined(_MSC_VER)
|
|
||||||
// Use pragma with MSVC
|
|
||||||
#define LLVM_XSTR(s) LLVM_STR(s)
|
|
||||||
#define LLVM_STR(s) #s
|
|
||||||
#pragma detect_mismatch("LLVM_ENABLE_ABI_BREAKING_CHECKS", LLVM_XSTR(LLVM_ENABLE_ABI_BREAKING_CHECKS))
|
|
||||||
#undef LLVM_XSTR
|
|
||||||
#undef LLVM_STR
|
|
||||||
#elif defined(__cplusplus)
|
|
||||||
namespace llvm {
|
|
||||||
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
|
|
||||||
extern int EnableABIBreakingChecks;
|
|
||||||
__attribute__((weak, visibility ("hidden"))) int *VerifyEnableABIBreakingChecks = &EnableABIBreakingChecks;
|
|
||||||
#else
|
|
||||||
extern int DisableABIBreakingChecks;
|
|
||||||
__attribute__((weak, visibility ("hidden"))) int *VerifyDisableABIBreakingChecks = &DisableABIBreakingChecks;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif // _MSC_VER
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -112,19 +112,3 @@ void report_fatal_error(Error Err, bool GenCrashDiag) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
|
||||||
namespace llvm {
|
|
||||||
|
|
||||||
// One of these two variables will be referenced by a symbol defined in
|
|
||||||
// llvm-config.h. We provide a link-time (or load time for DSO) failure when
|
|
||||||
// there is a mismatch in the build configuration of the API client and LLVM.
|
|
||||||
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
|
|
||||||
int EnableABIBreakingChecks;
|
|
||||||
#else
|
|
||||||
int DisableABIBreakingChecks;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} // end namespace llvm
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user