diff options
author | Xin Tong <trent.xin.tong@gmail.com> | 2017-05-21 00:37:55 +0000 |
---|---|---|
committer | Xin Tong <trent.xin.tong@gmail.com> | 2017-05-21 00:37:55 +0000 |
commit | 9fbfeefadfad06ee55a1e4012a6a3fb3893936d2 (patch) | |
tree | a7fc16eba5dfaeb8deb3ed51cfa3fe86e2345e98 /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | |
parent | 75af3af95780e1c379409bf56c516a272c4fa961 (diff) | |
download | bcm5719-llvm-9fbfeefadfad06ee55a1e4012a6a3fb3893936d2.tar.gz bcm5719-llvm-9fbfeefadfad06ee55a1e4012a6a3fb3893936d2.zip |
Revert "Add pthread_self function prototype and make it speculatable."
This reverts commit 143d7445b5dfa2f6d6c45bdbe0433d9fc531be21.
Build breaking
llvm-svn: 303496
Diffstat (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp')
-rw-r--r-- | llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp index 64a735de694..9d852cf0301 100644 --- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp +++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp @@ -63,13 +63,12 @@ TEST_F(TargetLibraryInfoTest, InvalidProto) { parseAssembly("%foo = type { %foo }\n"); auto *StructTy = M->getTypeByName("foo"); + auto *InvalidFTy = FunctionType::get(StructTy, /*isVarArg=*/false); + for (unsigned FI = 0; FI != LibFunc::NumLibFuncs; ++FI) { LibFunc LF = (LibFunc)FI; - // Using the library function name to create a function that takes - // 1 parameter and returns the same type. There should be no library - // function that matches this egregiously incorrect prototypes. auto *F = cast<Function>( - M->getOrInsertFunction(TLI.getName(LF), StructTy, StructTy)); + M->getOrInsertFunction(TLI.getName(LF), InvalidFTy)); EXPECT_FALSE(isLibFunc(F, LF)); } } @@ -247,7 +246,6 @@ TEST_F(TargetLibraryInfoTest, ValidProto) { "declare float @powf(float, float)\n" "declare x86_fp80 @powl(x86_fp80, x86_fp80)\n" "declare i32 @printf(i8*, ...)\n" - "declare %struct @pthread_self()\n" "declare i32 @putc(i32, %struct*)\n" "declare i32 @putchar(i32)\n" "declare i32 @puts(i8*)\n" |