From 60b40b8fec56d4d0131f01985e9a10b31d772841 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 5 May 2017 20:25:50 +0000 Subject: 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 --- llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp') 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. -- cgit v1.2.3