diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index aa6876c166f9..70e31e8a5657 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -58,8 +58,6 @@ using namespace llvm::support::endian; namespace lld { namespace elf { -StringRef getRelName(uint32_t Type); - static bool refersToGotEntry(RelExpr Expr) { return Expr == R_GOT || Expr == R_GOT_OFF || Expr == R_MIPS_GOT_LOCAL || Expr == R_MIPS_GOT_LOCAL_PAGE || Expr == R_GOT_PAGE_PC || diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h index 25ac2f2b3e74..2c53321ba604 100644 --- a/lld/ELF/Target.h +++ b/lld/ELF/Target.h @@ -98,6 +98,7 @@ public: virtual void relaxTlsLdToLe(uint8_t *Loc, uint32_t Type, uint64_t Val) const; }; +StringRef getRelName(uint32_t Type); uint64_t getPPC64TocBase(); const unsigned MipsGPOffset = 0x7ff0;