[lld] r255861 - Add comment about DefinedSynthetic class.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 16 16:48:16 PST 2015


Author: ruiu
Date: Wed Dec 16 18:48:16 2015
New Revision: 255861

URL: http://llvm.org/viewvc/llvm-project?rev=255861&view=rev
Log:
Add comment about DefinedSynthetic class.

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=255861&r1=255860&r2=255861&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Wed Dec 16 18:48:16 2015
@@ -240,6 +240,10 @@ public:
   InputSectionBase<ELFT> &Section;
 };
 
+// DefinedSynthetic is a class to represent linker-generated ELF symbols.
+// The difference from the regular symbol is that DefinedSynthetic symbols
+// don't belong to any input files or sections. Thus, its constructor
+// takes an output section to calculate output VA, etc.
 template <class ELFT> class DefinedSynthetic : public Defined<ELFT> {
   typedef Defined<ELFT> Base;
 




More information about the llvm-commits mailing list