From 091f9b35c70fd1978fdf72cd737539218e830370 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Wed, 1 Feb 2017 09:12:29 +0000 Subject: [PATCH] [ELF] - Revert r293749 Accidentally lost the commit title and message, will recommit. llvm-svn: 293750 --- lld/ELF/LinkerScript.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index a2e7a527081b..22b8ff3fd821 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -1494,7 +1494,8 @@ ScriptParser::readOutputSectionDescription(StringRef OutSec) { while (!Error && !consume("}")) { StringRef Tok = next(); if (Tok == ";") { - // Empty commands are allowed. Do nothing here. + // Commands may contain excessive additional semicolons around. + // We should be able to parse it. } else if (SymbolAssignment *Assignment = readProvideOrAssignment(Tok)) { Cmd->Commands.emplace_back(Assignment); } else if (BytesDataCommand *Data = readBytesDataCommand(Tok)) {