diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2016-10-19 17:13:43 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2016-10-19 17:13:43 +0000 |
| commit | bc94693042f04894f634e83618d3156dabf26cc5 (patch) | |
| tree | 09fbaa76688d43d2aaaae94fbaed536f6a2000b5 | |
| parent | a20aeea9986ff1d7bbc6f01ef351e602552f1720 (diff) | |
| download | bcm5719-llvm-bc94693042f04894f634e83618d3156dabf26cc5.tar.gz bcm5719-llvm-bc94693042f04894f634e83618d3156dabf26cc5.zip | |
[ELF] Add `const` qualifier to functions. NFC
llvm-svn: 284614
| -rw-r--r-- | lld/ELF/OutputSections.cpp | 2 | ||||
| -rw-r--r-- | lld/ELF/OutputSections.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 3d3d5a5bb28..408455a1f52 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -216,7 +216,7 @@ GotSection<ELFT>::getMipsGotOffset(const SymbolBody &B, uintX_t Addend) 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); } diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index 41ec6abcae8..3b405042dfc 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -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. |

