[lld] r291812 - Remove dead code.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 13:09:58 PST 2017


Author: ruiu
Date: Thu Jan 12 15:09:58 2017
New Revision: 291812

URL: http://llvm.org/viewvc/llvm-project?rev=291812&view=rev
Log:
Remove dead code.

Modified:
    lld/trunk/ELF/InputSection.cpp

Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=291812&r1=291811&r2=291812&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Thu Jan 12 15:09:58 2017
@@ -36,7 +36,7 @@ using namespace lld::elf;
 // Returns a string to construct an error message.
 template <class ELFT>
 std::string lld::toString(const InputSectionBase<ELFT> *Sec) {
-  // File can absent if section is synthetic.
+  // File can be absent if section is synthetic.
   std::string FileName =
       Sec->getFile() ? Sec->getFile()->getName() : "<internal>";
   return (FileName + ":(" + Sec->Name + ")").str();
@@ -106,11 +106,6 @@ template <class ELFT> size_t InputSectio
   return Data.size();
 }
 
-// Returns a string for an error message.
-template <class SectionT> static std::string getName(SectionT *Sec) {
-  return (Sec->getFile()->getName() + ":(" + Sec->Name + ")").str();
-}
-
 template <class ELFT>
 typename ELFT::uint InputSectionBase<ELFT>::getOffset(uintX_t Offset) const {
   switch (kind()) {




More information about the llvm-commits mailing list