mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-28 18:54:55 +00:00
[PS4] Enable relaxed relocations by default
PS4 supports these relocations types; so, we want to enable them by default. Differential Revision: https://reviews.llvm.org/D79980
This commit is contained in:
parent
3198406367
commit
9d23b5025d
@ -100,6 +100,8 @@ public:
|
||||
return llvm::DenormalMode::getPreserveSign();
|
||||
}
|
||||
|
||||
bool useRelaxRelocations() const override { return true; }
|
||||
|
||||
protected:
|
||||
Tool *buildAssembler() const override;
|
||||
Tool *buildLinker() const override;
|
||||
|
18
clang/test/Driver/ps4-relax-relocations.c
Normal file
18
clang/test/Driver/ps4-relax-relocations.c
Normal file
@ -0,0 +1,18 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
|
||||
// RUN: %clang -### -target x86_64-scei-ps4 %s -o - 2>&1 | \
|
||||
// RUN: FileCheck %s
|
||||
// RUN: %clang -### -target x86_64-scei-ps4 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
|
||||
// RUN: FileCheck %s
|
||||
// RUN: %clang -### -target x86_64-scei-ps4 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \
|
||||
// RUN: FileCheck -check-prefix=UNSET %s
|
||||
// RUN: %clang -### -x assembler -target x86_64-scei-ps4 %s -o - 2>&1 | \
|
||||
// RUN: FileCheck %s
|
||||
// RUN: %clang -### -x assembler -target x86_64-scei-ps4 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
|
||||
// RUN: FileCheck %s
|
||||
// RUN: %clang -### -x assembler -target x86_64-scei-ps4 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \
|
||||
// RUN: FileCheck -check-prefix=UNSET %s
|
||||
|
||||
// CHECK: "--mrelax-relocations"
|
||||
|
||||
// UNSET-NOT: "--mrelax-relocations"
|
Loading…
Reference in New Issue
Block a user