diff --git a/include/llvm/Object/ArchiveWriter.h b/include/llvm/Object/ArchiveWriter.h index 71b45293b2b..5fc1e1b1236 100644 --- a/include/llvm/Object/ArchiveWriter.h +++ b/include/llvm/Object/ArchiveWriter.h @@ -38,7 +38,7 @@ struct NewArchiveMember { }; std::error_code -writeArchive(StringRef ArcName, std::vector &NewMembers, +writeArchive(StringRef ArcName, ArrayRef NewMembers, bool WriteSymtab, object::Archive::Kind Kind, bool Deterministic, bool Thin, std::unique_ptr OldArchiveBuf = nullptr); } diff --git a/lib/Object/ArchiveWriter.cpp b/lib/Object/ArchiveWriter.cpp index a6b712c1627..ab86d8dbbcc 100644 --- a/lib/Object/ArchiveWriter.cpp +++ b/lib/Object/ArchiveWriter.cpp @@ -377,7 +377,7 @@ writeSymbolTable(raw_fd_ostream &Out, object::Archive::Kind Kind, } std::error_code -llvm::writeArchive(StringRef ArcName, std::vector &NewMembers, +llvm::writeArchive(StringRef ArcName, ArrayRef NewMembers, bool WriteSymtab, object::Archive::Kind Kind, bool Deterministic, bool Thin, std::unique_ptr OldArchiveBuf) {