[lld] r256850 - Add comments.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 5 09:55:06 PST 2016


Author: ruiu
Date: Tue Jan  5 11:55:05 2016
New Revision: 256850

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

Modified:
    lld/trunk/ELF/Config.h

Modified: lld/trunk/ELF/Config.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Config.h?rev=256850&r1=256849&r2=256850&view=diff
==============================================================================
--- lld/trunk/ELF/Config.h (original)
+++ lld/trunk/ELF/Config.h Tue Jan  5 11:55:05 2016
@@ -30,6 +30,10 @@ enum ELFKind {
   ELF64BEKind
 };
 
+// This struct contains the global configuration for the linker.
+// Most fields are direct mapping from the command line options
+// and such fields have the same name as the corresponding options.
+// Most fields are initialized by the driver.
 struct Configuration {
   SymbolBody *EntrySym = nullptr;
   SymbolBody *MipsGpDisp = nullptr;
@@ -76,6 +80,7 @@ struct Configuration {
   unsigned Optimize = 0;
 };
 
+// The only instance of Configuration struct.
 extern Configuration *Config;
 
 } // namespace elf2




More information about the llvm-commits mailing list