diff options
author | David Bozier <seifsta@gmail.com> | 2017-02-09 15:08:40 +0000 |
---|---|---|
committer | David Bozier <seifsta@gmail.com> | 2017-02-09 15:08:40 +0000 |
commit | 6a44b7c2ebb30624e7901862abb0b118e11c2a04 (patch) | |
tree | d725432d185f563a19dab5ec85174d35d249505c /llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp | |
parent | dc1c3011fd2dfb75f6a1f4f20fa73344956a54a4 (diff) | |
download | bcm5719-llvm-6a44b7c2ebb30624e7901862abb0b118e11c2a04.tar.gz bcm5719-llvm-6a44b7c2ebb30624e7901862abb0b118e11c2a04.zip |
[Stack Protection] Add diagnostic information for why stack protection was applied to a function
Stack Smash Protection is not completely free, so in hot code, the overhead it causes can cause performance issues. By adding diagnostic information for which function have SSP and why, a user can quickly determine what they can do to stop SSP being applied to a specific hot function.
This change adds an SSP-specific DiagnosticInfo class and uses of it to the Stack Protection code. A subsequent change to clang will cause the remarks to be emitted when enabled.
Patch by: James Henderson
Differential Revision: https://reviews.llvm.org/D29023
llvm-svn: 294590
Diffstat (limited to 'llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp')
0 files changed, 0 insertions, 0 deletions