[lld] r207434 - [Mips] Add the 'const' qualifier to the couple RelocationPass class

Simon Atanasyan simon at atanasyan.com
Mon Apr 28 12:34:27 PDT 2014


Author: atanasyan
Date: Mon Apr 28 14:34:27 2014
New Revision: 207434

URL: http://llvm.org/viewvc/llvm-project?rev=207434&view=rev
Log:
[Mips] Add the 'const' qualifier to the couple RelocationPass class
member functions.

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=207434&r1=207433&r2=207434&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp Mon Apr 28 14:34:27 2014
@@ -192,8 +192,8 @@ private:
   const ObjectAtom *getObjectEntry(const SharedLibraryAtom *a);
 
   bool isLocal(const Atom *a) const;
-  bool requireLocalGOT(const Atom *a);
-  bool requireLA25Stub(const Atom *a);
+  bool requireLocalGOT(const Atom *a) const;
+  bool requireLA25Stub(const Atom *a) const;
   void createPLTHeader();
 };
 
@@ -323,7 +323,7 @@ template <typename ELFT> void Relocation
 }
 
 template <typename ELFT>
-bool RelocationPass<ELFT>::requireLocalGOT(const Atom *a) {
+bool RelocationPass<ELFT>::requireLocalGOT(const Atom *a) const {
   Atom::Scope scope;
   if (auto *da = dyn_cast<DefinedAtom>(a))
     scope = da->scope();
@@ -344,7 +344,7 @@ bool RelocationPass<ELFT>::requireLocalG
 }
 
 template <typename ELFT>
-bool RelocationPass<ELFT>::requireLA25Stub(const Atom *a) {
+bool RelocationPass<ELFT>::requireLA25Stub(const Atom *a) const {
   if (auto *da = dyn_cast<DefinedAtom>(a))
     return static_cast<const MipsELFDefinedAtom<ELFT> *>(da)->file().isPIC();
   return false;





More information about the llvm-commits mailing list