]> granicus.if.org Git - llvm/commit
Add fortified (__*_chk) library functions to TLI (NFC)
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 12 Nov 2014 21:23:34 +0000 (21:23 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 12 Nov 2014 21:23:34 +0000 (21:23 +0000)
commitf9e1e56ea17c0171ecc2095fae6335369abc94bc
tree95a1a0faa80170e4a0fd0b78c0d77ca63c6710d7
parentfc0d323d018f82de465933177fdd38b82bb072d3
Add fortified (__*_chk) library functions to TLI (NFC)

One of them (__memcpy_chk) was already there, the others were checked
by comparing function names.
Note that the fortified libfuncs are now part of TLI, but are always
available, because they aren't generated, only optimized into the
non-checking versions.

Differential Revision: http://reviews.llvm.org/D6179

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221817 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLibraryInfo.h
lib/Target/TargetLibraryInfo.cpp
lib/Transforms/Utils/SimplifyLibCalls.cpp