[lld] r298795 - Add a comment.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 25 20:41:41 PDT 2017


Author: ruiu
Date: Sat Mar 25 22:41:41 2017
New Revision: 298795

URL: http://llvm.org/viewvc/llvm-project?rev=298795&view=rev
Log:
Add a comment.

Modified:
    lld/trunk/ELF/Relocations.cpp

Modified: lld/trunk/ELF/Relocations.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.cpp?rev=298795&r1=298794&r2=298795&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Sat Mar 25 22:41:41 2017
@@ -393,6 +393,7 @@ static RelExpr fromPlt(RelExpr Expr) {
   return Expr;
 }
 
+// Returns true if a given shared symbol is in a read-only segment in a DSO.
 template <class ELFT> static bool isReadOnly(SharedSymbol *SS) {
   typedef typename ELFT::Phdr Elf_Phdr;
   uint64_t Value = SS->getValue<ELFT>();




More information about the llvm-commits mailing list