search for: abicheckenabled

Displaying 2 results from an estimated 2 matches for "abicheckenabled".

2016 Nov 16
4
[RFC] Runtime checks for ABI breaking build of LLVM
...m/include/llvm/Config/llvm-config.h.cmake @@ -80,4 +80,18 @@ /* LLVM version string */ #define LLVM_VERSION_STRING "${PACKAGE_VERSION}" + +#ifdef __cplusplus +namespace llvm { +bool setABIBreakingChecks(bool Enabled); +__attribute__((weak)) +#if LLVM_ENABLE_ABI_BREAKING_CHECKS +bool +ABICheckEnabled = setABIBreakingChecks(true); +#else +bool ABICheckDisabled = setABIBreakingChecks(true); +#endif +} +#endif + #endif diff --git a/llvm/lib/Support/Error.cpp b/llvm/lib/Support/Error.cpp index 7436a1fd38ee..151fcdcbfb27 100644 --- a/llvm/lib/Support/Error.cpp +++ b/llvm/lib/Support/Error.cpp @@ -1...
2016 Nov 16
2
[RFC] Runtime checks for ABI breaking build of LLVM
...>> #define LLVM_VERSION_STRING "${PACKAGE_VERSION}" >> >> + >> +#ifdef __cplusplus >> +namespace llvm { >> +bool setABIBreakingChecks(bool Enabled); >> +__attribute__((weak)) >> +#if LLVM_ENABLE_ABI_BREAKING_CHECKS >> +bool >> +ABICheckEnabled = setABIBreakingChecks(true); >> +#else >> +bool ABICheckDisabled = setABIBreakingChecks(true); > > Do you mean `false` here ^ ? > >> +#endif >> +} >> +#endif >> + >> #endif >> diff --git a/llvm/lib/Support/Error.cpp b/llvm/lib/Support/Erro...