[lld] r319403 - Delete dead code.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 21:52:42 PST 2017
Author: rafael
Date: Wed Nov 29 21:52:42 2017
New Revision: 319403
URL: http://llvm.org/viewvc/llvm-project?rev=319403&view=rev
Log:
Delete dead code.
Modified:
lld/trunk/ELF/InputSection.cpp
lld/trunk/ELF/InputSection.h
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=319403&r1=319402&r2=319403&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Wed Nov 29 21:52:42 2017
@@ -214,10 +214,6 @@ void InputSectionBase::maybeUncompress()
this->Flags &= ~(uint64_t)SHF_COMPRESSED;
}
-uint64_t SectionBase::getOffset(const Defined &Sym) const {
- return getOffset(Sym.Value);
-}
-
InputSection *InputSectionBase::getLinkOrderDep() const {
if ((Flags & SHF_LINK_ORDER) && Link != 0) {
InputSectionBase *L = File->getSections()[Link];
Modified: lld/trunk/ELF/InputSection.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.h?rev=319403&r1=319402&r2=319403&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.h (original)
+++ lld/trunk/ELF/InputSection.h Wed Nov 29 21:52:42 2017
@@ -73,8 +73,6 @@ public:
// section.
uint64_t getOffset(uint64_t Offset) const;
- uint64_t getOffset(const Defined &Sym) const;
-
protected:
SectionBase(Kind SectionKind, StringRef Name, uint64_t Flags,
uint64_t Entsize, uint64_t Alignment, uint32_t Type,
More information about the llvm-commits
mailing list