Remove dead code.

llvm-svn: 291812
This commit is contained in:
Rui Ueyama 2017-01-12 21:09:58 +00:00
parent 61fc94e0c1
commit 1d8460755e
1 changed files with 1 additions and 6 deletions

View File

@ -36,7 +36,7 @@ using namespace lld::elf;
// Returns a string to construct an error message. // Returns a string to construct an error message.
template <class ELFT> template <class ELFT>
std::string lld::toString(const InputSectionBase<ELFT> *Sec) { 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 = std::string FileName =
Sec->getFile() ? Sec->getFile()->getName() : "<internal>"; Sec->getFile() ? Sec->getFile()->getName() : "<internal>";
return (FileName + ":(" + Sec->Name + ")").str(); return (FileName + ":(" + Sec->Name + ")").str();
@ -106,11 +106,6 @@ template <class ELFT> size_t InputSectionBase<ELFT>::getSize() const {
return Data.size(); 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> template <class ELFT>
typename ELFT::uint InputSectionBase<ELFT>::getOffset(uintX_t Offset) const { typename ELFT::uint InputSectionBase<ELFT>::getOffset(uintX_t Offset) const {
switch (kind()) { switch (kind()) {