search for: abicheckdisabled

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

2016 Nov 16
4
[RFC] Runtime checks for ABI breaking build of LLVM
...@ /* 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 @@ -112,3 +112,17 @@ void report_fatal_error(Error Err, bool GenC...
2016 Nov 16
2
[RFC] Runtime checks for ABI breaking build of LLVM
...>> + >> +#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/Error.cpp >> index 7436a1fd38ee..151fcdcbfb27 100644 >> --- a/llvm/lib...