TargetLibraryInfo: add strn?cat, strn?cpy, and strn?len
authorNuno Lopes <nunoplopes@sapo.pt>
Tue, 24 Jul 2012 17:25:06 +0000 (17:25 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Tue, 24 Jul 2012 17:25:06 +0000 (17:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160678 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLibraryInfo.h
lib/Target/TargetLibraryInfo.cpp

index c8cacf284d0a0a40097dba5f248e5e0fd7d94805..0b7bc05940efa9f3608ef3cab5d85d07c68d4db7 100644 (file)
@@ -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);
index ec95ad4deeab86a21aa150b1d826c50e0556094c..898c0e7b8faf820ffa8547105e1a0e8d90f6d02f 100644 (file)
@@ -108,6 +108,12 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
     "sqrt",
     "sqrtl",
     "sqrtf",
+    "strcat",
+    "strcpy",
+    "strlen",
+    "strncat",
+    "strncpy",
+    "strnlen",
     "tan",
     "tanl",
     "tanf",