[all-commits] [llvm/llvm-project] 8d58eb: [llvm-libtool-darwin] Refactor ArchiveWriter

Sameer Arora via All-commits all-commits at lists.llvm.org
Thu Aug 13 10:58:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d58eb11f9dabacc37f1f5e2cc83149b24868180
      https://github.com/llvm/llvm-project/commit/8d58eb11f9dabacc37f1f5e2cc83149b24868180
  Author: Sameer Arora <sameerarora101 at fb.com>
  Date:   2020-08-13 (Thu, 13 Aug 2020)

  Changed paths:
    M llvm/include/llvm/Object/ArchiveWriter.h
    M llvm/lib/Object/ArchiveWriter.cpp

  Log Message:
  -----------
  [llvm-libtool-darwin] Refactor ArchiveWriter

Refactoring function `writeArchive` in ArchiveWriter. Added a new
function `writeArchiveBuffer` that returns the archive in a memory
buffer instead of writing it out to the disk. This refactor is necessary
so as to allow `llvm-libtool-darwin` to write universal files containing
archives.

Reviewed by jhenderson, MaskRay, smeenai

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




More information about the All-commits mailing list