diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-11-06 07:23:03 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-11-06 07:23:03 +0000 |
commit | 4c3a1d8d2be313f1b322f680801fec262a2480c6 (patch) | |
tree | 7bb989e12013577856ddb7f7b6e39f6b3aa534f1 /lib/CodeGen/StackProtector.cpp | |
parent | e11eb620efa50e99b1a5dd94e8b63840c32d587b (diff) |
- Rename stackprotector_{prologue,epilogue} to stackprotector_{create,check}.
- Get rid of "HasStackProtector" in MachineFrameInfo.
- Modify intrinsics to tell which are doing what with memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackProtector.cpp')
-rw-r--r-- | lib/CodeGen/StackProtector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/StackProtector.cpp b/lib/CodeGen/StackProtector.cpp index eaf52f691c..318be93b40 100644 --- a/lib/CodeGen/StackProtector.cpp +++ b/lib/CodeGen/StackProtector.cpp @@ -118,7 +118,7 @@ bool StackProtector::InsertStackProtectors() { Constant *StackGuardVar = M->getOrInsertGlobal("__stack_chk_guard", GuardTy); LoadInst *LI = new LoadInst(StackGuardVar, "StackGuard", false, InsertPt); CallInst:: - Create(Intrinsic::getDeclaration(M, Intrinsic::stackprotector_prologue), + Create(Intrinsic::getDeclaration(M, Intrinsic::stackprotector_create), LI, "", InsertPt); // Create the basic block to jump to when the guard check fails. @@ -163,7 +163,7 @@ bool StackProtector::InsertStackProtectors() { // Generate the stack protector instructions in the old basic block. LoadInst *LI1 = new LoadInst(StackGuardVar, "", false, BB); CallInst *CI = CallInst:: - Create(Intrinsic::getDeclaration(M, Intrinsic::stackprotector_epilogue), + Create(Intrinsic::getDeclaration(M, Intrinsic::stackprotector_check), "", BB); ICmpInst *Cmp = new ICmpInst(CmpInst::ICMP_EQ, CI, LI1, "", BB); BranchInst::Create(NewBB, FailBB, Cmp, BB); |