[PATCH] D148031: [clang][driver][NFC] Add hasShadowCallStack to SanitizerArgs
Paul Kirth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 11 10:04:16 PDT 2023
paulkirth created this revision.
paulkirth added reviewers: phosek, abrachet, dvyukov, vitalybuka, aaron.ballman.
Herald added a project: All.
paulkirth requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148031
Files:
clang/include/clang/Driver/SanitizerArgs.h
Index: clang/include/clang/Driver/SanitizerArgs.h
===================================================================
--- clang/include/clang/Driver/SanitizerArgs.h
+++ clang/include/clang/Driver/SanitizerArgs.h
@@ -119,6 +119,10 @@
return MemtagMode;
}
+ bool hasShadowCallStack() const {
+ return Sanitizers.has(SanitizerKind::ShadowCallStack);
+ }
+
bool requiresPIE() const;
bool needsUnwindTables() const;
bool needsLTO() const;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148031.512506.patch
Type: text/x-patch
Size: 458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230411/020e6f44/attachment.bin>
More information about the cfe-commits
mailing list