OSDN Git Service

Implement the stack protector stack accesses via intrinsics:
authorBill Wendling <isanbard@gmail.com>
Thu, 6 Nov 2008 02:29:10 +0000 (02:29 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 6 Nov 2008 02:29:10 +0000 (02:29 +0000)
commitb2a4298ce41e7ef80cd75a3c1dfa6433f0759a1a
tree90348b042f4b796ea7643d4966ccb2207a5bfdfa
parent9092213a5e50d4991f900d2df009d27bddfd9941
Implement the stack protector stack accesses via intrinsics:

- stackprotector_prologue creates a stack object and stores the guard there.

- stackprotector_epilogue reads the stack guard from the stack position created
  by stackprotector_prologue.

- The PrologEpilogInserter was changed to make sure that the stack guard is
  first on the stack frame.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58791 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineFrameInfo.h
include/llvm/Intrinsics.td
lib/CodeGen/PrologEpilogInserter.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
lib/CodeGen/StackProtector.cpp