search for: abi_breaking_checks_en

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

2016 Nov 16
4
[RFC] Runtime checks for ABI breaking build of LLVM
...t/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 GenCrashDiag) { } } + + +bool llvm::setABIBreakingChecks(bool Enabled) { + static char abi_breaking_checks_enabled = 0; + static char abi_breaking_checks_disabled = 0; + if (Enabled) + abi_breaking_checks_enabled = 1; + else + abi_breaking_checks_disabled = 1; + if (abi_breaking_checks_enabled && abi_breaking_checks_disabled) + report_fatal_error("Error initializing LLVM: mixing t...
2016 Nov 16
2
[RFC] Runtime checks for ABI breaking build of LLVM
...t; --- a/llvm/lib/Support/Error.cpp >> +++ b/llvm/lib/Support/Error.cpp >> @@ -112,3 +112,17 @@ void report_fatal_error(Error Err, bool GenCrashDiag) { >> } >> >> } >> + >> + >> +bool llvm::setABIBreakingChecks(bool Enabled) { >> + static char abi_breaking_checks_enabled = 0; >> + static char abi_breaking_checks_disabled = 0; >> + if (Enabled) >> + abi_breaking_checks_enabled = 1; >> + else >> + abi_breaking_checks_disabled = 1; >> + if (abi_breaking_checks_enabled && abi_breaking_checks_disabled) >>...