Skip to content

Commit

Permalink
TargetLibraryInfo: add strn?cat, strn?cpy, and strn?len
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160678 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
nunoplopes committed Jul 24, 2012
1 parent 9827c8e commit 0841e63
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/llvm/Target/TargetLibraryInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 6 additions & 0 deletions lib/Target/TargetLibraryInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
"sqrt",
"sqrtl",
"sqrtf",
"strcat",
"strcpy",
"strlen",
"strncat",
"strncpy",
"strnlen",
"tan",
"tanl",
"tanf",
Expand Down

0 comments on commit 0841e63

Please sign in to comment.