summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-06 07:23:03 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-06 07:23:03 +0000
commitb3f7a39877188405cd52fa6fe5a4533248fb0467 (patch)
tree03b379c6192be7b236bcdf94e960dbf2edbd4a4f /llvm/lib/CodeGen/StackProtector.cpp
parentef625263ef7aa27e4e41a30ada86f0cd19700e5d (diff)
downloadbcm5719-llvm-b3f7a39877188405cd52fa6fe5a4533248fb0467.tar.gz
bcm5719-llvm-b3f7a39877188405cd52fa6fe5a4533248fb0467.zip
- Rename stackprotector_{prologue,epilogue} to stackprotector_{create,check}.
- Get rid of "HasStackProtector" in MachineFrameInfo. - Modify intrinsics to tell which are doing what with memory. llvm-svn: 58799
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
-rw-r--r--llvm/lib/CodeGen/StackProtector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp
index eaf52f691c6..318be93b40d 100644
--- a/llvm/lib/CodeGen/StackProtector.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud