[lld] r265320 - Add comments.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 4 11:15:39 PDT 2016


Author: ruiu
Date: Mon Apr  4 13:15:38 2016
New Revision: 265320

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

Modified:
    lld/trunk/ELF/Symbols.h

Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=265320&r1=265319&r2=265320&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Mon Apr  4 13:15:38 2016
@@ -152,9 +152,11 @@ public:
   // symbol or if the symbol should point to its plt entry.
   unsigned NeedsCopyOrPltAddr : 1;
 
-  uint8_t Type;
-  uint8_t Binding;
-  uint8_t Other;
+  // The following fields have the same meaning as the ELF symbol attributes.
+  uint8_t Type;    // symbol type
+  uint8_t Binding; // symbol binding
+  uint8_t Other;   // st_other field value
+
   bool isSection() const { return Type == llvm::ELF::STT_SECTION; }
   bool isTls() const { return Type == llvm::ELF::STT_TLS; }
   bool isFunc() const { return Type == llvm::ELF::STT_FUNC; }




More information about the llvm-commits mailing list