[stack protector] Make the StackProtector pass respect ssp-buffer-size.
authorJosh Magee <joshua_magee@playstation.sony.com>
Thu, 17 Apr 2014 19:08:36 +0000 (19:08 +0000)
committerJosh Magee <joshua_magee@playstation.sony.com>
Thu, 17 Apr 2014 19:08:36 +0000 (19:08 +0000)
commita32348530f4dd2afaa695233e77d129b2d79451b
treec18ea792e0d3207f8732da761c2fa9cea10fc801
parent09da6b55409ec4fbf69fedff8f74552bbad69469
[stack protector] Make the StackProtector pass respect ssp-buffer-size.

Previously, SSPBufferSize was assigned the value of the "stack-protector-buffer-size"
attribute after all uses of SSPBufferSize.  The effect was that the default
SSPBufferSize was always used during analysis.  I moved the check for the
attribute before the analysis; now --param ssp-buffer-size= works correctly again.

Differential Revision: http://reviews.llvm.org/D3349

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206486 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/StackProtector.cpp
test/CodeGen/X86/stack-protector.ll