[lld] r277116 - Add comments.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 22:52:33 PDT 2016
Author: ruiu
Date: Fri Jul 29 00:52:33 2016
New Revision: 277116
URL: http://llvm.org/viewvc/llvm-project?rev=277116&view=rev
Log:
Add comments.
Modified:
lld/trunk/ELF/LinkerScript.h
Modified: lld/trunk/ELF/LinkerScript.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.h?rev=277116&r1=277115&r2=277116&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.h (original)
+++ lld/trunk/ELF/LinkerScript.h Fri Jul 29 00:52:33 2016
@@ -54,11 +54,17 @@ struct SymbolAssignment : BaseCommand {
SymbolAssignment(StringRef Name, Expr E)
: BaseCommand(AssignmentKind), Name(Name), Expression(E) {}
static bool classof(const BaseCommand *C);
+
+ // The LHS of an expression. Name is either a symbol name or ".".
StringRef Name;
+ SymbolBody *Sym = nullptr;
+
+ // The RHS of an expression.
Expr Expression;
+
+ // Command attributes for PROVIDE, HIDDEN and PROVIDE_HIDDEN.
bool Provide = false;
bool Hidden = false;
- SymbolBody *Sym = nullptr;
};
// Linker scripts allow additional constraints to be put on ouput sections.
More information about the llvm-commits
mailing list