Skip to content

Commit

Permalink
[clang][driver][NFC] Add hasShadowCallStack to SanitizerArgs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ilovepi committed Apr 12, 2023
1 parent 9e3aa50 commit 723f7d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang/include/clang/Driver/SanitizerArgs.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ class SanitizerArgs {
return MemtagMode;
}

bool hasShadowCallStack() const {
return Sanitizers.has(SanitizerKind::ShadowCallStack);
}

bool requiresPIE() const;
bool needsUnwindTables() const;
bool needsLTO() const;
Expand Down

0 comments on commit 723f7d3

Please sign in to comment.