From: Simon Atanasyan Date: Wed, 19 Nov 2014 05:50:53 +0000 (+0000) Subject: [Mips] Make the function return type constant pointer X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd69b04381ee5df02bddf203d4a52ea1096ffa23;p=platform%2Fupstream%2Fllvm.git [Mips] Make the function return type constant pointer No functional changes. llvm-svn: 222321 --- diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp index 3662c02..15d72d2 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp @@ -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 void RelocationPass::createPLTHeader() { } template -PLTAtom *RelocationPass::getPLTEntry(const Atom *a) { +const PLTAtom *RelocationPass::getPLTEntry(const Atom *a) { auto plt = _pltMap.find(a); if (plt != _pltMap.end()) return plt->second;