[stackprotector] Removed stale TODO.
authorMichael Gottesman <mgottesman@apple.com>
Tue, 20 Aug 2013 08:46:13 +0000 (08:46 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Tue, 20 Aug 2013 08:46:13 +0000 (08:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188768 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/StackProtector.cpp

index cca5e6171790e4cf5652d572c291ae2c300acfdd..3e6f44cabf18c4e4edc912713e20201333dde90a 100644 (file)
@@ -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: