[lld] r277043 - [ELF] - Cosmetic change. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 15:01:56 PDT 2016


Author: grimar
Date: Thu Jul 28 17:01:56 2016
New Revision: 277043

URL: http://llvm.org/viewvc/llvm-project?rev=277043&view=rev
Log:
[ELF] - Cosmetic change. NFC.

peek()[0] == '*' changed to peek().startswith("*")

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=277043&r1=277042&r2=277043&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Thu Jul 28 17:01:56 2016
@@ -747,7 +747,7 @@ void ScriptParser::readOutputSectionDesc
   expect("{");
 
   while (!Error && !skip("}")) {
-    if ((!peek().empty() && peek()[0] == '*') || peek() == "KEEP") {
+    if ((!peek().empty() && peek().startswith("*")) || peek() == "KEEP") {
       Cmd->Commands.push_back(readInputSectionDescription());
       continue;
     }




More information about the llvm-commits mailing list