[lld] r284805 - Add comments.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 20 21:52:12 PDT 2016


Author: ruiu
Date: Thu Oct 20 23:52:11 2016
New Revision: 284805

URL: http://llvm.org/viewvc/llvm-project?rev=284805&view=rev
Log:
Add comments.

Modified:
    lld/trunk/ELF/Relocations.h

Modified: lld/trunk/ELF/Relocations.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.h?rev=284805&r1=284804&r2=284805&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.h (original)
+++ lld/trunk/ELF/Relocations.h Thu Oct 20 23:52:11 2016
@@ -19,6 +19,9 @@ class InputSectionData;
 template <class ELFT> class InputSection;
 template <class ELFT> class InputSectionBase;
 
+// List of target-independent relocation types. Relocations read
+// from files are converted to these types so that the main code
+// doesn't have to know about architecture-specific details.
 enum RelExpr {
   R_ABS,
   R_GOT,
@@ -65,9 +68,10 @@ enum RelExpr {
   R_TLSGD,
   R_TLSGD_PC,
   R_TLSLD,
-  R_TLSLD_PC
+  R_TLSLD_PC,
 };
 
+// Architecture-neutral representation of relocation.
 struct Relocation {
   RelExpr Expr;
   uint32_t Type;




More information about the llvm-commits mailing list