Delete trivial setter.

llvm-svn: 296124
This commit is contained in:
Rafael Espindola 2017-02-24 14:34:12 +00:00
parent 40849419e2
commit 29c1afb880
2 changed files with 1 additions and 2 deletions

View File

@ -464,7 +464,7 @@ void LinkerScript<ELFT>::switchTo(OutputSectionBase *Sec) {
// section is the same as the preceding output section in the same region
// https://sourceware.org/binutils/docs-2.20/ld/Output-Section-LMA.html
if (LMAOffset)
CurOutSec->setLMAOffset(LMAOffset());
CurOutSec->LMAOffset = LMAOffset();
}
template <class ELFT> void LinkerScript<ELFT>::process(BaseCommand &Base) {

View File

@ -46,7 +46,6 @@ public:
};
OutputSectionBase(StringRef Name, uint32_t Type, uint64_t Flags);
void setLMAOffset(uint64_t LMAOff) { LMAOffset = LMAOff; }
uint64_t getLMA() const { return Addr + LMAOffset; }
template <typename ELFT> void writeHeaderTo(typename ELFT::Shdr *SHdr);