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
This commit is contained in:
Ahmed Bougacha
2014-11-12 21:23:34 +00:00
parent fc0d323d01
commit f9e1e56ea1
3 changed files with 32 additions and 19 deletions

View File

@@ -51,6 +51,8 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
"__isoc99_scanf",
"__isoc99_sscanf",
"__memcpy_chk",
"__memmove_chk",
"__memset_chk",
"__sincospi_stret",
"__sincospif_stret",
"__sinpi",
@@ -58,7 +60,11 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
"__sqrt_finite",
"__sqrtf_finite",
"__sqrtl_finite",
"__stpcpy_chk",
"__stpncpy_chk",
"__strcpy_chk",
"__strdup",
"__strncpy_chk",
"__strndup",
"__strtok_r",
"abs",