summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-06-08 14:35:22 +0000
committerRui Ueyama <ruiu@google.com>2016-06-08 14:35:22 +0000
commit3e097b1a06e6950d0e0bd57a4758d6c7c2d6c8ae (patch)
tree0aec1809711bcf3162c9f597487a527c1573b051
parent1ef925f0bdb8223c73e9aad36b6c2338f5bb9844 (diff)
downloadbcm5719-llvm-3e097b1a06e6950d0e0bd57a4758d6c7c2d6c8ae.tar.gz
bcm5719-llvm-3e097b1a06e6950d0e0bd57a4758d6c7c2d6c8ae.zip
Move a function declaration to a header.
llvm-svn: 272146
-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