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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
Might be nice to have a test for this -- see llvm/test/Bitcode/attributes.ll.
include/llvm/IR/Attributes.td | ||
---|---|---|
139 ↗ | (On Diff #139493) | Update comment. |
llvm/trunk/lib/Transforms/IPO/ForceFunctionAttrs.cpp | ||
---|---|---|
56 | Copy-paste error? Should probably be .Case("shadowcallstack", Attribute::ShadowCallStack). |
llvm/trunk/lib/Transforms/IPO/ForceFunctionAttrs.cpp | ||
---|---|---|
56 | Damn, thanks for pointing that out. |
Copy-paste error? Should probably be .Case("shadowcallstack", Attribute::ShadowCallStack).