[Mips] Make the function return type constant pointer
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 19 Nov 2014 05:50:53 +0000 (05:50 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 19 Nov 2014 05:50:53 +0000 (05:50 +0000)
No functional changes.

llvm-svn: 222321

lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp

index 3662c02..15d72d2 100644 (file)
@@ -238,7 +238,7 @@ private:
   const GOTAtom *getTLSGOTEntry(const Atom *a);
   const GOTAtom *getTLSGdGOTEntry(const Atom *a);
   const GOTAtom *getTLSLdmGOTEntry(const Atom *a);
-  PLTAtom *getPLTEntry(const Atom *a);
+  const PLTAtom *getPLTEntry(const Atom *a);
   const LA25Atom *getLA25Entry(const Atom *a);
   const ObjectAtom *getObjectEntry(const SharedLibraryAtom *a);
 
@@ -694,7 +694,7 @@ template <typename ELFT> void RelocationPass<ELFT>::createPLTHeader() {
 }
 
 template <typename ELFT>
-PLTAtom *RelocationPass<ELFT>::getPLTEntry(const Atom *a) {
+const PLTAtom *RelocationPass<ELFT>::getPLTEntry(const Atom *a) {
   auto plt = _pltMap.find(a);
   if (plt != _pltMap.end())
     return plt->second;