[lld] r248557 - Remove dead code.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 20:38:57 PDT 2015
Author: ruiu
Date: Thu Sep 24 22:38:56 2015
New Revision: 248557
URL: http://llvm.org/viewvc/llvm-project?rev=248557&view=rev
Log:
Remove dead code.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=248557&r1=248556&r2=248557&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Sep 24 22:38:56 2015
@@ -184,15 +184,6 @@ template <class ELFT> void Writer<ELFT>:
error(Buffer->commit());
}
-template <class ELFT>
-static int compareSym(const typename ELFFile<ELFT>::Elf_Sym *A,
- const typename ELFFile<ELFT>::Elf_Sym *B) {
- uint32_t AN = A->st_name;
- uint32_t BN = B->st_name;
- assert(AN != BN);
- return AN - BN;
-}
-
namespace {
template <bool Is64Bits> struct SectionKey {
typedef typename std::conditional<Is64Bits, uint64_t, uint32_t>::type uintX_t;
More information about the llvm-commits
mailing list