aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2015-02-26 20:09:37 +0000
committerSimon Atanasyan <simon@atanasyan.com>2015-02-26 20:09:37 +0000
commit009c28a231663fe737773f1d43a516a96d384f91 (patch)
tree7d214a44d6975ae82cb66361d9b5089b38750112
parent43e51634bb699c7aa8b97a78955115a15cbe291d (diff)
downloadllvm-009c28a231663fe737773f1d43a516a96d384f91.zip
llvm-009c28a231663fe737773f1d43a516a96d384f91.tar.gz
llvm-009c28a231663fe737773f1d43a516a96d384f91.tar.bz2
[Mips] Mark some MipsELFFile member functions as constant
No functional changes. llvm-svn: 230677
-rw-r--r--lld/lib/ReaderWriter/ELF/Mips/MipsELFFile.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsELFFile.h b/lld/lib/ReaderWriter/ELF/Mips/MipsELFFile.h
index 226f218..c65a745 100644
--- a/lld/lib/ReaderWriter/ELF/Mips/MipsELFFile.h
+++ b/lld/lib/ReaderWriter/ELF/Mips/MipsELFFile.h
@@ -291,7 +291,7 @@ private:
}
}
- uint32_t getPairRelocation(const Elf_Rel &rel) {
+ uint32_t getPairRelocation(const Elf_Rel &rel) const {
switch (rel.getType(isMips64EL())) {
case llvm::ELF::R_MIPS_HI16:
return llvm::ELF::R_MIPS_LO16;
@@ -313,7 +313,7 @@ private:
}
Elf_Rel_Iter findMatchingRelocation(uint32_t pairRelType, Elf_Rel_Iter rit,
- Elf_Rel_Iter eit) {
+ Elf_Rel_Iter eit) const {
return std::find_if(rit, eit, [&](const Elf_Rel &rel) {
return rel.getType(isMips64EL()) == pairRelType &&
rel.getSymbol(isMips64EL()) == rit->getSymbol(isMips64EL());
@@ -321,7 +321,7 @@ private:
}
bool isMips64EL() const { return this->_objFile->isMips64EL(); }
- bool isLocalBinding(const Elf_Rel &rel) {
+ bool isLocalBinding(const Elf_Rel &rel) const {
return this->_objFile->getSymbol(rel.getSymbol(isMips64EL()))
->getBinding() == llvm::ELF::STB_LOCAL;
}