From 29c1afb880fa399ebbfbde0c608dc86e504f6eec Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 24 Feb 2017 14:34:12 +0000 Subject: [PATCH] Delete trivial setter. llvm-svn: 296124 --- lld/ELF/LinkerScript.cpp | 2 +- lld/ELF/OutputSections.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 700be0f5f848..5e3f0cd0de7c 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -464,7 +464,7 @@ void LinkerScript::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 void LinkerScript::process(BaseCommand &Base) { diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index 9e7973a54b1c..d2f0c3b11756 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -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 void writeHeaderTo(typename ELFT::Shdr *SHdr);