diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-24 17:25:06 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-24 17:25:06 +0000 |
commit | 0841e63ede092283d824843a068df3f7b0b90dd8 (patch) | |
tree | a5061b47dc9646fb72bfdc4d811d27db2a7dc44f | |
parent | 9827c8e1c96950d17a4dbb7ef9d9036501c40c1b (diff) | |
download | llvm-0841e63ede092283d824843a068df3f7b0b90dd8.tar.gz llvm-0841e63ede092283d824843a068df3f7b0b90dd8.tar.bz2 llvm-0841e63ede092283d824843a068df3f7b0b90dd8.tar.xz |
TargetLibraryInfo: add strn?cat, strn?cpy, and strn?len
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160678 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetLibraryInfo.h | 12 | ||||
-rw-r--r-- | lib/Target/TargetLibraryInfo.cpp | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLibraryInfo.h b/include/llvm/Target/TargetLibraryInfo.h index c8cacf284d..0b7bc05940 100644 --- a/include/llvm/Target/TargetLibraryInfo.h +++ b/include/llvm/Target/TargetLibraryInfo.h @@ -187,6 +187,18 @@ namespace llvm { sqrtl, /// float sqrtf(float x); sqrtf, + /// char *strcat(char *s1, const char *s2); + strcat, + /// char *strcpy(char *s1, const char *s2); + strcpy, + /// size_t strlen(const char *s); + strlen, + /// char *strncat(char *s1, const char *s2, size_t n); + strncat, + /// char *strncpy(char *s1, const char *s2, size_t n); + strncpy, + /// size_t strnlen(const char *s, size_t maxlen); + strnlen, /// double tan(double x); tan, /// long double tanl(long double x); diff --git a/lib/Target/TargetLibraryInfo.cpp b/lib/Target/TargetLibraryInfo.cpp index ec95ad4dee..898c0e7b8f 100644 --- a/lib/Target/TargetLibraryInfo.cpp +++ b/lib/Target/TargetLibraryInfo.cpp @@ -108,6 +108,12 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] = "sqrt", "sqrtl", "sqrtf", + "strcat", + "strcpy", + "strlen", + "strncat", + "strncpy", + "strnlen", "tan", "tanl", "tanf", |