diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-23 06:43:53 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-23 06:43:53 +0000 |
commit | 7c8f96a91b9edde97ccd0dfaaa04e5bb04e308c6 (patch) | |
tree | cfdb4e8d8c3fe11238e870ae1db1283750d253db /llvm/unittests/IR/DominatorTreeTest.cpp | |
parent | d154e283f28525a5fcfb063d4b527bb9a68a8608 (diff) | |
download | bcm5719-llvm-7c8f96a91b9edde97ccd0dfaaa04e5bb04e308c6.tar.gz bcm5719-llvm-7c8f96a91b9edde97ccd0dfaaa04e5bb04e308c6.zip |
Add the heuristic to differentiate SSPStrong from SSPRequired.
The requirements of the strong heuristic are:
* A Protector is required for functions which contain an array, regardless of
type or length.
* A Protector is required for functions which contain a structure/union which
contains an array, regardless of type or length. Note, there is no limit to
the depth of nesting.
* A protector is required when the address of a local variable (i.e., stack
based variable) is exposed. (E.g., such as through a local whose address is
taken as part of the RHS of an assignment or a local whose address is taken as
part of a function argument.)
llvm-svn: 173231
Diffstat (limited to 'llvm/unittests/IR/DominatorTreeTest.cpp')
0 files changed, 0 insertions, 0 deletions