Add the heuristic to differentiate SSPStrong from SSPRequired.
authorBill Wendling <isanbard@gmail.com>
Wed, 23 Jan 2013 06:43:53 +0000 (06:43 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 23 Jan 2013 06:43:53 +0000 (06:43 +0000)
commit7c8f96a91b9edde97ccd0dfaaa04e5bb04e308c6
treecfdb4e8d8c3fe11238e870ae1db1283750d253db
parentd154e283f28525a5fcfb063d4b527bb9a68a8608
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
llvm/docs/LangRef.rst
llvm/lib/CodeGen/StackProtector.cpp
llvm/test/CodeGen/X86/stack-protector.ll