Delete trivial setter.

llvm-svn: 296124
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 700be0f..5e3f0cd 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -464,7 +464,7 @@
   // 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) {
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h
index 9e7973a5..d2f0c3b 100644
--- a/lld/ELF/OutputSections.h
+++ b/lld/ELF/OutputSections.h
@@ -46,7 +46,6 @@
   };
 
   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);