[all-commits] [llvm/llvm-project] 7de277: [llvm-ar] Improve MRI script CREATE command handling

gbreynoo via All-commits all-commits at lists.llvm.org
Mon Jun 27 03:11:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7de277d684fdbb12f5bfa761efe7dbbed681137d
      https://github.com/llvm/llvm-project/commit/7de277d684fdbb12f5bfa761efe7dbbed681137d
  Author: gbreynoo <Owen.Reynolds at sony.com>
  Date:   2022-06-27 (Mon, 27 Jun 2022)

  Changed paths:
    M llvm/test/tools/llvm-ar/mri-addlib.test
    M llvm/test/tools/llvm-ar/mri-addmod.test
    A llvm/test/tools/llvm-ar/mri-create.test
    M llvm/tools/llvm-ar/llvm-ar.cpp

  Log Message:
  -----------
  [llvm-ar] Improve MRI script CREATE command handling

I discovered that when compared to GNU the llvm-ar MRI script parsing of
CREATE could lead to some strange behaviour. This fix improves the error
message in the case when no archive name is given and will not allow the
adding of members until CREATE is called. Along with this change I added
more testing of the CREATE command.

Differential Revision: https://reviews.llvm.org/D128055




More information about the All-commits mailing list