forked from OSchip/llvm-project
[NFC][hwasan] Remove "pragma GCC poison"
With ifdefs they make code less readable.
This commit is contained in:
parent
cd4d244757
commit
a4904ebb88
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue