From 8c16d52893683437fc5b1439d017d443896a169e Mon Sep 17 00:00:00 2001 From: George Rimar Date: Thu, 28 Jul 2016 22:01:56 +0000 Subject: [PATCH] [ELF] - Cosmetic change. NFC. peek()[0] == '*' changed to peek().startswith("*") llvm-svn: 277043 --- lld/ELF/LinkerScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index c1c5fa8..6925b47 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -747,7 +747,7 @@ void ScriptParser::readOutputSectionDescription(StringRef OutSec) { expect("{"); while (!Error && !skip("}")) { - if ((!peek().empty() && peek()[0] == '*') || peek() == "KEEP") { + if ((!peek().empty() && peek().startswith("*")) || peek() == "KEEP") { Cmd->Commands.push_back(readInputSectionDescription()); continue; } -- 2.7.4