diff options
author | Vlad Tsyrklevich <vlad@tsyrklevich.net> | 2018-04-03 20:10:40 +0000 |
---|---|---|
committer | Vlad Tsyrklevich <vlad@tsyrklevich.net> | 2018-04-03 20:10:40 +0000 |
commit | d17f61ea3bf5432dff6497ee5c1b85879e501da2 (patch) | |
tree | 040a519e5c9671c1e20d8e4d4aa64c635bd02073 /llvm/lib/Transforms/Utils | |
parent | c6bf37d56d73d8ab1c1da86ce4cfd21afb0ab43a (diff) | |
download | bcm5719-llvm-d17f61ea3bf5432dff6497ee5c1b85879e501da2.tar.gz bcm5719-llvm-d17f61ea3bf5432dff6497ee5c1b85879e501da2.zip |
Add the ShadowCallStack attribute
Summary:
Introduce the ShadowCallStack function attribute. It's added to
functions compiled with -fsanitize=shadow-call-stack in order to mark
functions to be instrumented by a ShadowCallStack pass to be submitted
in a separate change.
Reviewers: pcc, kcc, kubamracek
Reviewed By: pcc, kcc
Subscribers: cryptoad, mehdi_amini, javed.absar, llvm-commits, kcc
Differential Revision: https://reviews.llvm.org/D44800
llvm-svn: 329108
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r-- | llvm/lib/Transforms/Utils/CodeExtractor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp index d87eccf4c27..573ccc3cf6a 100644 --- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp +++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp @@ -688,6 +688,7 @@ Function *CodeExtractor::constructFunction(const ValueSet &inputs, case Attribute::OptimizeNone: case Attribute::OptimizeForSize: case Attribute::SafeStack: + case Attribute::ShadowCallStack: case Attribute::SanitizeAddress: case Attribute::SanitizeMemory: case Attribute::SanitizeThread: |