[llvm] r357559 - Fix TargetLibraryInfoTest.ValidProto after rL357552

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 19:30:35 PDT 2019


Author: sbc
Date: Tue Apr  2 19:30:35 2019
New Revision: 357559

URL: http://llvm.org/viewvc/llvm-project?rev=357559&view=rev
Log:
Fix TargetLibraryInfoTest.ValidProto after rL357552

Modified:
    llvm/trunk/unittests/Analysis/TargetLibraryInfoTest.cpp

Modified: llvm/trunk/unittests/Analysis/TargetLibraryInfoTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Analysis/TargetLibraryInfoTest.cpp?rev=357559&r1=357558&r2=357559&view=diff
==============================================================================
--- llvm/trunk/unittests/Analysis/TargetLibraryInfoTest.cpp (original)
+++ llvm/trunk/unittests/Analysis/TargetLibraryInfoTest.cpp Tue Apr  2 19:30:35 2019
@@ -494,6 +494,11 @@ TEST_F(TargetLibraryInfoTest, ValidProto
       "declare i32 @iprintf(i8*, ...)\n"
       "declare i32 @siprintf(i8*, i8*, ...)\n"
 
+      // __small_printf variants have the same prototype as the non-'i' versions.
+      "declare i32 @__small_fprintf(%struct*, i8*, ...)\n"
+      "declare i32 @__small_printf(i8*, ...)\n"
+      "declare i32 @__small_sprintf(i8*, i8*, ...)\n"
+
       "declare i32 @htonl(i32)\n"
       "declare i16 @htons(i16)\n"
       "declare i32 @ntohl(i32)\n"




More information about the llvm-commits mailing list