[stackprotector] Refactor out the end of isInTailCallPosition into the function returnTypeIsEligibleForTailCall.

This allows me to use returnTypeIsEligibleForTailCall in the stack protector pass.

rdar://13935163
[stackprotector] Added support for emitting the llvm intrinsic stack protector check.

rdar://13935163