Skip to content

Commit 723f7d3

Browse files
committed
[clang][driver][NFC] Add hasShadowCallStack to SanitizerArgs
Currently, we can't check if ShadowCallStack is present in Args the same way we handle other sanitizers. This is preparatory work for planned driver changes to how we handle ShadowCallStack. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D148031
1 parent 9e3aa50 commit 723f7d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/include/clang/Driver/SanitizerArgs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ class SanitizerArgs {
119119
return MemtagMode;
120120
}
121121

122+
bool hasShadowCallStack() const {
123+
return Sanitizers.has(SanitizerKind::ShadowCallStack);
124+
}
125+
122126
bool requiresPIE() const;
123127
bool needsUnwindTables() const;
124128
bool needsLTO() const;

0 commit comments

Comments
 (0)