[lld] r204244 - [Mips] Add 'const' qualifier to the function.
Simon Atanasyan
simon at atanasyan.com
Wed Mar 19 08:46:00 PDT 2014
Author: atanasyan
Date: Wed Mar 19 10:46:00 2014
New Revision: 204244
URL: http://llvm.org/viewvc/llvm-project?rev=204244&view=rev
Log:
[Mips] Add 'const' qualifier to the function.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp?rev=204244&r1=204243&r2=204244&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp Wed Mar 19 10:46:00 2014
@@ -163,7 +163,7 @@ private:
const PLTAtom *getPLTEntry(const Atom *a);
const ObjectAtom *getObjectEntry(const SharedLibraryAtom *a);
- bool isLocal(const Atom *a);
+ bool isLocal(const Atom *a) const;
bool requireLocalGOT(const Atom *a);
void createPLTHeader();
};
@@ -276,7 +276,7 @@ void RelocationPass::handleReference(con
}
}
-bool RelocationPass::isLocal(const Atom *a) {
+bool RelocationPass::isLocal(const Atom *a) const {
if (auto *da = dyn_cast<DefinedAtom>(a))
return da->scope() == Atom::scopeTranslationUnit;
return false;
More information about the llvm-commits
mailing list