[llvm] [llvm-objcopy] fix llvm-objcopy replaced failed when the file is modified inplace (PR #121564)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 09:07:55 PST 2025


================
@@ -62,13 +64,13 @@ static Error deepWriteArchive(StringRef ArcName,
                               ArrayRef<NewArchiveMember> NewMembers,
                               SymtabWritingMode WriteSymtab,
                               object::Archive::Kind Kind, bool Deterministic,
-                              bool Thin) {
+                              bool Thin, std::unique_ptr<MemoryBuffer> Buffer) {
----------------
MaskRay wrote:

perhaps `MemoryBufferRef` and drop `include <memory>`

https://github.com/llvm/llvm-project/pull/121564


More information about the llvm-commits mailing list