summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-18 07:30:57 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-18 07:30:57 +0000
commit7235002bd131dd850633cad530da6853af852ee5 (patch)
tree89e249a52480d949e5e97e81910925e3d5071f7a /llvm/lib/CodeGen/SelectionDAG
parentee4fa9cfbbf6f1de762db433faed3b3835132a35 (diff)
downloadbcm5719-llvm-7235002bd131dd850633cad530da6853af852ee5.tar.gz
bcm5719-llvm-7235002bd131dd850633cad530da6853af852ee5.zip
Remove the stackprotector_check intrinsic. Use a volatile load instead.
llvm-svn: 59504
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 4a934526895..140b8567036 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
@@ -4041,19 +4041,6 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
DAG.setRoot(Result);
return 0;
}
- case Intrinsic::stackprotector_check: {
- // Emit code into the DAG to retrieve the stack guard off of the stack.
- MachineFunction &MF = DAG.getMachineFunction();
- MachineFrameInfo *MFI = MF.getFrameInfo();
- MVT PtrTy = TLI.getPointerTy();
-
- // Load the value stored on the stack.
- int FI = MFI->getStackProtectorIndex();
- SDValue FIN = DAG.getFrameIndex(MFI->getStackProtectorIndex(), PtrTy);
- setValue(&I, DAG.getLoad(PtrTy, getRoot(), FIN,
- PseudoSourceValue::getFixedStack(FI), 0, true));
- return 0;
- }
case Intrinsic::var_annotation:
// Discard annotate attributes
return 0;
OpenPOWER on IntegriCloud