search for: setabibreakingchecks

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

2016 Nov 16
4
[RFC] Runtime checks for ABI breaking build of LLVM
...ake index 4121e865ea00..4274c942d3b6 100644 --- a/llvm/include/llvm/Config/llvm-config.h.cmake +++ b/llvm/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 7436a1...
2016 Nov 16
2
[RFC] Runtime checks for ABI breaking build of LLVM
...m-config.h.cmake >> +++ b/llvm/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); > > Do you mean `false` here ^ ? > >> +#...