summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/LinkerScript.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h
index 6b8598fdd06..fe7c3629272 100644
--- a/lld/ELF/LinkerScript.h
+++ b/lld/ELF/LinkerScript.h
@@ -89,9 +89,8 @@ struct BaseCommand {
// This represents ". = <expr>" or "<symbol> = <expr>".
struct SymbolAssignment : BaseCommand {
- SymbolAssignment(StringRef Name, Expr E, std::string &&Loc)
- : BaseCommand(AssignmentKind), Name(Name), Expression(E),
- Location(std::move(Loc)) {}
+ SymbolAssignment(StringRef Name, Expr E, std::string Loc)
+ : BaseCommand(AssignmentKind), Name(Name), Expression(E), Location(Loc) {}
static bool classof(const BaseCommand *C);
@@ -106,6 +105,7 @@ struct SymbolAssignment : BaseCommand {
bool Provide = false;
bool Hidden = false;
+ // Holds file name and line number for error reporting.
std::string Location;
};
OpenPOWER on IntegriCloud