From 6f8fc217eaa12bf657be1c6468ed9938d10168b3 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 27 Jan 2022 23:06:42 +0100 Subject: Vendor import of llvm-project main llvmorg-14-init-17616-g024a1fab5c35. --- lld/ELF/Target.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lld/ELF/Target.h') diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h index e0e97301ca98..f7b947ec3aa2 100644 --- a/lld/ELF/Target.h +++ b/lld/ELF/Target.h @@ -221,6 +221,16 @@ void addPPC64SaveRestore(); uint64_t getPPC64TocBase(); uint64_t getAArch64Page(uint64_t expr); +class AArch64Relaxer { + bool safeToRelaxAdrpLdr = true; + +public: + explicit AArch64Relaxer(ArrayRef relocs); + + bool tryRelaxAdrpLdr(const Relocation &adrpRel, const Relocation &ldrRel, + uint64_t secAddr, uint8_t *buf) const; +}; + extern const TargetInfo *target; TargetInfo *getTarget(); -- cgit v1.3