[lld] r265940 - Mark OffsetSec const. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 11 06:51:24 PDT 2016
Author: rafael
Date: Mon Apr 11 08:51:23 2016
New Revision: 265940
URL: http://llvm.org/viewvc/llvm-project?rev=265940&view=rev
Log:
Mark OffsetSec const. NFC.
Modified:
lld/trunk/ELF/OutputSections.h
Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=265940&r1=265939&r2=265940&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Mon Apr 11 08:51:23 2016
@@ -177,12 +177,12 @@ template <class ELFT> struct DynamicRelo
uint32_t Type;
SymbolBody *Sym;
- OutputSectionBase<ELFT> *OffsetSec;
+ const OutputSectionBase<ELFT> *OffsetSec;
uintX_t OffsetInSec;
bool UseSymVA;
uintX_t Addend;
- DynamicReloc(uint32_t Type, OutputSectionBase<ELFT> *OffsetSec,
+ DynamicReloc(uint32_t Type, const OutputSectionBase<ELFT> *OffsetSec,
uintX_t OffsetInSec, bool UseSymVA, SymbolBody *Sym,
uintX_t Addend)
: Type(Type), Sym(Sym), OffsetSec(OffsetSec), OffsetInSec(OffsetInSec),
More information about the llvm-commits
mailing list