diff options
author | Rui Ueyama <ruiu@google.com> | 2015-12-16 23:33:56 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-12-16 23:33:56 +0000 |
commit | 6192c122f4b183f9bc54b473c2c0e3e9921a0faf (patch) | |
tree | e7d6b0fbf452125ea3882603764d1b66c9ba8039 /lld/ELF/SymbolTable.cpp | |
parent | 25b44c9b2bd7259a0d0a44ac30101371ae263e85 (diff) | |
download | bcm5719-llvm-6192c122f4b183f9bc54b473c2c0e3e9921a0faf.tar.gz bcm5719-llvm-6192c122f4b183f9bc54b473c2c0e3e9921a0faf.zip |
ELF: Move shouldUseRela to Writer.cpp.
The function was used only in Writer.cpp and did not depend on SymbolTable.
There is no reason to have that function in SymbolTable.cpp.
llvm-svn: 255850
Diffstat (limited to 'lld/ELF/SymbolTable.cpp')
-rw-r--r-- | lld/ELF/SymbolTable.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp index ebb13af0577..9ca68c82ec3 100644 --- a/lld/ELF/SymbolTable.cpp +++ b/lld/ELF/SymbolTable.cpp @@ -28,11 +28,6 @@ using namespace lld::elf2; template <class ELFT> SymbolTable<ELFT>::SymbolTable() {} -template <class ELFT> bool SymbolTable<ELFT>::shouldUseRela() const { - ELFKind K = cast<ELFFileBase<ELFT>>(Config->FirstElf)->getELFKind(); - return K == ELF64LEKind || K == ELF64BEKind; -} - template <class ELFT> static void checkCompatibility(InputFile *FileP) { auto *F = dyn_cast<ELFFileBase<ELFT>>(FileP); |