[PATCH] D51338: [llvm-ar] Support * as comment char in MIR scripts

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 29 12:44:48 PDT 2018


mstorsjo added inline comments.


================
Comment at: tools/llvm-ar/llvm-ar.cpp:815
       Rest = Rest.drop_front().drop_back();
+    if (CommandStr.startswith(";") || CommandStr.startswith("*"))
+      continue;
----------------
pcc wrote:
> What should happen if a line contains both a command and a comment?
I'm not sure I'm following, can you elaborate?

If the first word of the line starts with either `;` or `*`, the whole line is a comment.


Repository:
  rL LLVM

https://reviews.llvm.org/D51338





More information about the llvm-commits mailing list