[lld] r296124 - Delete trivial setter.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 24 06:34:13 PST 2017
Author: rafael
Date: Fri Feb 24 08:34:12 2017
New Revision: 296124
URL: http://llvm.org/viewvc/llvm-project?rev=296124&view=rev
Log:
Delete trivial setter.
Modified:
lld/trunk/ELF/LinkerScript.cpp
lld/trunk/ELF/OutputSections.h
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=296124&r1=296123&r2=296124&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Fri Feb 24 08:34:12 2017
@@ -464,7 +464,7 @@ void LinkerScript<ELFT>::switchTo(Output
// 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) {
Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=296124&r1=296123&r2=296124&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Fri Feb 24 08:34:12 2017
@@ -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);
More information about the llvm-commits
mailing list