[lld] r222321 - [Mips] Make the function return type constant pointer
Simon Atanasyan
simon at atanasyan.com
Tue Nov 18 21:50:53 PST 2014
Author: atanasyan
Date: Tue Nov 18 23:50:53 2014
New Revision: 222321
URL: http://llvm.org/viewvc/llvm-project?rev=222321&view=rev
Log:
[Mips] Make the function return type constant pointer
No functional changes.
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=222321&r1=222320&r2=222321&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp Tue Nov 18 23:50:53 2014
@@ -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 Relocation
}
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;
More information about the llvm-commits
mailing list