[NFC][hwasan] Remove "pragma GCC poison"

With ifdefs they make code less readable.
This commit is contained in:
Vitaly Buka 2021-07-20 19:08:12 -07:00
parent cd4d244757
commit a4904ebb88
1 changed files with 0 additions and 12 deletions

View File

@ -194,26 +194,14 @@ namespace {
bool shouldUsePageAliases(const Triple &TargetTriple) {
return ClUsePageAliases && TargetTriple.getArch() == Triple::x86_64;
#ifdef __GNUC__
// No one should use the option directly.
#pragma GCC poison ClUsePageAliases
#endif
}
bool shouldInstrumentStack(const Triple &TargetTriple) {
return !shouldUsePageAliases(TargetTriple) && ClInstrumentStack;
#ifdef __GNUC__
// No one should use the option directly.
#pragma GCC poison ClInstrumentStack
#endif
}
bool shouldInstrumentWithCalls(const Triple &TargetTriple) {
return ClInstrumentWithCalls || TargetTriple.getArch() == Triple::x86_64;
#ifdef __GNUC__
// No one should use the option directly.
#pragma GCC poison ClInstrumentWithCalls
#endif
}
/// An instrumentation pass implementing detection of addressability bugs