[PATCH] D24831: [ELF] - Linkerscript: accept space between '=' and expression in section filler.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 10:49:58 PDT 2016


ruiu added inline comments.

================
Comment at: ELF/LinkerScript.cpp:1220
@@ -1219,3 +1219,3 @@
   Cmd->Phdrs = readOutputSectionPhdrs();
-  if (peek().startswith("="))
-    Cmd->Filler = readOutputSectionFiller(next().drop_front());
+  if (peek().startswith("=")) {
+    StringRef Filler = next().drop_front();
----------------
Probably this is better.

  if (skip("="))
    Cmd->Filler = next();
  else if (peek().startswith("="))
    Cmd->Filler = readOutputSectionFiller(next().drop_front());


https://reviews.llvm.org/D24831





More information about the llvm-commits mailing list