summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-05-05 20:25:50 +0000
committerMatthias Braun <matze@braunis.de>2017-05-05 20:25:50 +0000
commit60b40b8fec56d4d0131f01985e9a10b31d772841 (patch)
tree40c4b4e3838ccbdd4aca37ff4ef986bfd28164fa /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
parent6ccb076aeb021af4782093a7e9b6bcba968d3452 (diff)
downloadbcm5719-llvm-60b40b8fec56d4d0131f01985e9a10b31d772841.tar.gz
bcm5719-llvm-60b40b8fec56d4d0131f01985e9a10b31d772841.zip
TargetLibraryInfo: Introduce wcslen
wcslen is part of the C99 and C++98 standards. - This introduces the function to TargetLibraryInfo. - Also set attributes for wcslen in llvm::inferLibFuncAttributes(). Differential Revision: https://reviews.llvm.org/D32837 llvm-svn: 302278
Diffstat (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp')
-rw-r--r--llvm/unittests/Analysis/TargetLibraryInfoTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
index 598429c968a..44c141d6a1e 100644
--- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
+++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
@@ -334,6 +334,7 @@ TEST_F(TargetLibraryInfoTest, ValidProto) {
"declare i32 @vsnprintf(i8*, i64, i8*, %struct*)\n"
"declare i32 @vsprintf(i8*, i8*, %struct*)\n"
"declare i32 @vsscanf(i8*, i8*, %struct*)\n"
+ "declare i64 @wcslen(i32*)\n"
// These functions were also extracted from the OS X headers, but they are
// available with a special name on darwin.
OpenPOWER on IntegriCloud