[llvm] [Object] Add Identifier parameter to writeArchiveToBuffer(). (PR #176087)
Tianle Liu via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 21 23:53:03 PST 2026
================
@@ -1361,8 +1360,14 @@ writeArchiveToBuffer(ArrayRef<NewArchiveMember> NewMembers,
Deterministic, Thin, std::nullopt, Warn))
return std::move(E);
+ if (Identifier)
+ return std::make_unique<SmallVectorMemoryBuffer>(
+ std::move(ArchiveBufferVector), *Identifier,
+ /*RequiresNullTerminator=*/false);
+
return std::make_unique<SmallVectorMemoryBuffer>(
- std::move(ArchiveBufferVector), /*RequiresNullTerminator=*/false);
+ std::move(ArchiveBufferVector),
----------------
tianleliu wrote:
I have run it as below:
$ python3 clang/tools/clang-format/git-clang-format HEAD~1
clang-format did not modify any files
https://github.com/llvm/llvm-project/pull/176087
More information about the llvm-commits
mailing list