aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commit56e246b1a1aa65789792254c0c6a59dd3b4d7804 (patch)
treedf3bec78c7ecdce6c4df0c967bc71fb5485cd3a4 /llvm/lib/CodeGen/StackProtector.cpp
parent869bdad93a74a778958bf231acb99019a2392560 (diff)
downloadllvm-56e246b1a1aa65789792254c0c6a59dd3b4d7804.zip
llvm-56e246b1a1aa65789792254c0c6a59dd3b4d7804.tar.gz
llvm-56e246b1a1aa65789792254c0c6a59dd3b4d7804.tar.bz2
[stackprotector] Removed stale TODO.
llvm-svn: 188768
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
-rw-r--r--llvm/lib/CodeGen/StackProtector.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp
index cca5e61..3e6f44c 100644
--- a/llvm/lib/CodeGen/StackProtector.cpp
+++ b/llvm/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: