summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Relocations.cpp2
-rw-r--r--lld/ELF/Target.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index aa6876c166f..70e31e8a565 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 25ac2f2b3e7..2c53321ba60 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;
OpenPOWER on IntegriCloud