[PATCH] D113130: [llvm-libtool-darwin] Throw an error if object file names are repeated

Vincent Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 4 23:25:25 PDT 2021


thevinster added a comment.

I agree with jhenderson@ here. I'm not sure why we want to error on this when it's only warning for cctools libtool. This is a backwards incompatible change for those who want to a drop in replacement of the tool.



================
Comment at: llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp:105-108
+  std::vector<NewArchiveMember> Members;
+  // This vector contains the file that each NewArchiveMember from Members came
+  // from. Therefore, it has the same size as Members.
+  std::vector<StringRef> Files;
----------------
These vectors feel a bit strange to me. It almost feels like NewArchiveMember should either support filename in the struct or a much less invasive change is to have this class inherit NewArchiveMember and support the filename field here. We can always downcast it if methods elsewhere require the NewArchiveMember object. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113130/new/

https://reviews.llvm.org/D113130



More information about the llvm-commits mailing list