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/lib/Analysis/TargetLibraryInfo.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/lib/Analysis/TargetLibraryInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/TargetLibraryInfo.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp index b12778278ce..2be5d5caf7c 100644 --- a/llvm/lib/Analysis/TargetLibraryInfo.cpp +++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp @@ -349,9 +349,6 @@ static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, TLI.setUnavailable(LibFunc_atoll); TLI.setUnavailable(LibFunc_frexpf); TLI.setUnavailable(LibFunc_llabs); - - // Win32 does *not* provide pthread_self. - TLI.setUnavailable(LibFunc_pthread_self); } switch (T.getOS()) { @@ -1266,12 +1263,6 @@ bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy, FTy.getParamType(0)->isPointerTy() && FTy.getParamType(1) == SizeTTy && FTy.getParamType(2) == SizeTTy); - // We do not attempt to match the return value here. i.e. thread identifiers - // should be considered opaque, for example, representation using either an - // arithmetic type or a structure is permitted. - case LibFunc_pthread_self: - return NumParams == 0; - case LibFunc_wcslen: return (NumParams == 1 && FTy.getParamType(0)->isPointerTy() && FTy.getReturnType()->isIntegerTy()); |