[lld] r284614 - [ELF] Add `const` qualifier to functions. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 10:13:44 PDT 2016
Author: atanasyan
Date: Wed Oct 19 12:13:43 2016
New Revision: 284614
URL: http://llvm.org/viewvc/llvm-project?rev=284614&view=rev
Log:
[ELF] Add `const` qualifier to functions. NFC
Modified:
lld/trunk/ELF/OutputSections.cpp
lld/trunk/ELF/OutputSections.h
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=284614&r1=284613&r2=284614&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Wed Oct 19 12:13:43 2016
@@ -216,7 +216,7 @@ GotSection<ELFT>::getMipsGotOffset(const
}
template <class ELFT>
-typename GotSection<ELFT>::uintX_t GotSection<ELFT>::getMipsTlsOffset() {
+typename GotSection<ELFT>::uintX_t GotSection<ELFT>::getMipsTlsOffset() const {
return (MipsPageEntries + MipsLocal.size() + MipsGlobal.size()) *
sizeof(uintX_t);
}
Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=284614&r1=284613&r2=284614&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Wed Oct 19 12:13:43 2016
@@ -163,10 +163,10 @@ public:
// Returns offset of TLS part of the MIPS GOT table. This part goes
// after 'local' and 'global' entries.
- uintX_t getMipsTlsOffset();
+ uintX_t getMipsTlsOffset() const;
uintX_t getTlsIndexVA() { return Base::getVA() + TlsIndexOff; }
- uint32_t getTlsIndexOff() { return TlsIndexOff; }
+ uint32_t getTlsIndexOff() const { return TlsIndexOff; }
// Flag to force GOT to be in output if we have relocations
// that relies on its address.
More information about the llvm-commits
mailing list