mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 05:13:01 +00:00
TLI: darwin does not support _bcmp
Not all Darwin targets support _bcmp in all circumstances. Differential Revision: https://reviews.llvm.org/D65834 llvm-svn: 368113
This commit is contained in:
parent
72f0bd49ad
commit
c3ca1e95d5
@ -58,7 +58,7 @@ static bool hasBcmp(const Triple &TT) {
|
||||
return TT.isGNUEnvironment() || TT.isMusl();
|
||||
// Both NetBSD and OpenBSD are planning to remove the function. Windows does
|
||||
// not have it.
|
||||
return TT.isOSFreeBSD() || TT.isOSSolaris() || TT.isOSDarwin();
|
||||
return TT.isOSFreeBSD() || TT.isOSSolaris();
|
||||
}
|
||||
|
||||
/// Initialize the set of available library functions based on the specified
|
||||
|
@ -241,8 +241,8 @@ declare i64 @atol(i8*)
|
||||
; CHECK: declare i64 @atoll(i8* nocapture) [[G2]]
|
||||
declare i64 @atoll(i8*)
|
||||
|
||||
; CHECK-DARWIN: declare i32 @bcmp(i8* nocapture, i8* nocapture, i64) [[G2]]
|
||||
; CHECK-LINUX: declare i32 @bcmp(i8* nocapture, i8* nocapture, i64) [[G2]]
|
||||
; CHECK-DARWIN-NOT: declare i32 @bcmp(i8* nocapture, i8* nocapture, i64) [[G2]]
|
||||
; CHECK-UNKNOWN-NOT: declare i32 @bcmp(i8* nocapture, i8* nocapture, i64) [[G2]]
|
||||
; CHECK-NVPTX-NOT: declare i32 @bcmp(i8* nocapture, i8* nocapture, i64) [[G2]]
|
||||
declare i32 @bcmp(i8*, i8*, i64)
|
||||
|
Loading…
Reference in New Issue
Block a user