summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-07-29 05:52:33 +0000
committerRui Ueyama <ruiu@google.com>2016-07-29 05:52:33 +0000
commit202042439c5c9d4173fe946f47d0d1f77ac8ced8 (patch)
tree4c7405d4609706ec672ae2df4417ef4cbe98e121
parent8d083e6a0a2673b6e7c494dd1868c90019cebfda (diff)
downloadbcm5719-llvm-202042439c5c9d4173fe946f47d0d1f77ac8ced8.tar.gz
bcm5719-llvm-202042439c5c9d4173fe946f47d0d1f77ac8ced8.zip
Add comments.
llvm-svn: 277116
-rw-r--r--lld/ELF/LinkerScript.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h
index a88ccd714d5..056abdc413e 100644
--- a/lld/ELF/LinkerScript.h
+++ b/lld/ELF/LinkerScript.h
@@ -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.
OpenPOWER on IntegriCloud