summaryrefslogtreecommitdiff
path: root/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-08-20 08:46:13 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-08-20 08:46:13 +0000
commit47d6e07a9be631c582d47d8187a9073619d1c158 (patch)
treee7bd90cbcf0c29b1c01656a106c146acb0a26482 /lib/CodeGen/StackProtector.cpp
parentc149fbbe279ef623e6067304fd08dc1a62d74f7d (diff)
downloadllvm-47d6e07a9be631c582d47d8187a9073619d1c158.tar.gz
llvm-47d6e07a9be631c582d47d8187a9073619d1c158.tar.bz2
llvm-47d6e07a9be631c582d47d8187a9073619d1c158.tar.xz
[stackprotector] Removed stale TODO.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackProtector.cpp')
-rw-r--r--lib/CodeGen/StackProtector.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/CodeGen/StackProtector.cpp b/lib/CodeGen/StackProtector.cpp
index cca5e61717..3e6f44cabf 100644
--- a/lib/CodeGen/StackProtector.cpp
+++ b/lib/CodeGen/StackProtector.cpp
@@ -397,8 +397,6 @@ bool StackProtector::InsertStackProtectors() {
StackGuardVar);
}
- // TODO: Put in check here if platform supports the stack protector check
- // intrinsic.
if (EnableSelectionDAGSP && !TM->Options.EnableFastISel &&
SupportsSelectionDAGSP) {
// Since we have a potential tail call, insert the special stack check
@@ -420,10 +418,9 @@ bool StackProtector::InsertStackProtectors() {
CallInst::Create(Intrinsic, Args, "", InsertionPt);
} else {
- // If we do not have a potential tail call or our platform does not
- // support lowering the stack protector check pseudo node, perform the IR
- // level stack check.
-
+ // If we do not support SelectionDAG based tail calls, generate IR level
+ // tail calls.
+ //
// For each block with a return instruction, convert this:
//
// return: