forked from OSchip/llvm-project
[PS5] Make library function availability match PS4
This commit is contained in:
parent
6ccc2733e7
commit
10affe74ed
|
@ -659,12 +659,12 @@ static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T,
|
|||
TLI.setUnavailable(LibFunc_stpncpy);
|
||||
}
|
||||
|
||||
if (T.isPS4()) {
|
||||
// PS4 does have memalign.
|
||||
if (T.isPS()) {
|
||||
// PS4/PS5 do have memalign.
|
||||
TLI.setAvailable(LibFunc_memalign);
|
||||
|
||||
// PS4 does not have new/delete with "unsigned int" size parameter;
|
||||
// it only has the "unsigned long" versions.
|
||||
// PS4/PS5 do not have new/delete with "unsigned int" size parameter;
|
||||
// they only have the "unsigned long" versions.
|
||||
TLI.setUnavailable(LibFunc_ZdaPvj);
|
||||
TLI.setUnavailable(LibFunc_ZdaPvjSt11align_val_t);
|
||||
TLI.setUnavailable(LibFunc_ZdlPvj);
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
# REQUIRES: x86-registered-target
|
||||
#
|
||||
## This produces the object that matches expectations for PS4.
|
||||
## This produces the object that matches expectations for PS4/PS5.
|
||||
# RUN: yaml2obj %s -DZDAPV=_ZdaPv -o=%t1
|
||||
# RUN: llvm-tli-checker --triple=x86_64-scei-ps4 %t1 | FileCheck %s
|
||||
# RUN: llvm-tli-checker --triple=x86_64-sie-ps5 %t1 | FileCheck %s
|
||||
#
|
||||
## This produces an object that has _ZdaPvj instead of _ZdaPv.
|
||||
# RUN: yaml2obj %s -DZDAPV=_ZdaPvj -o=%t2
|
||||
|
|
Loading…
Reference in New Issue