1*f75da0c8SAlexey Lapshin //===- Archive.h ------------------------------------------------*- C++ -*-===// 2*f75da0c8SAlexey Lapshin // 3*f75da0c8SAlexey Lapshin // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*f75da0c8SAlexey Lapshin // See https://llvm.org/LICENSE.txt for license information. 5*f75da0c8SAlexey Lapshin // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*f75da0c8SAlexey Lapshin // 7*f75da0c8SAlexey Lapshin //===----------------------------------------------------------------------===// 8*f75da0c8SAlexey Lapshin 9*f75da0c8SAlexey Lapshin #ifndef LLVM_LIB_OBJCOPY_ARCHIVE_H 10*f75da0c8SAlexey Lapshin #define LLVM_LIB_OBJCOPY_ARCHIVE_H 11*f75da0c8SAlexey Lapshin 12*f75da0c8SAlexey Lapshin #include "llvm/Object/ArchiveWriter.h" 13*f75da0c8SAlexey Lapshin #include "llvm/Support/Error.h" 14*f75da0c8SAlexey Lapshin #include <vector> 15*f75da0c8SAlexey Lapshin 16*f75da0c8SAlexey Lapshin namespace llvm { 17*f75da0c8SAlexey Lapshin namespace objcopy { 18*f75da0c8SAlexey Lapshin 19*f75da0c8SAlexey Lapshin class MultiFormatConfig; 20*f75da0c8SAlexey Lapshin 21*f75da0c8SAlexey Lapshin /// Applies the transformations described by \p Config to 22*f75da0c8SAlexey Lapshin /// each member in archive \p Ar. 23*f75da0c8SAlexey Lapshin /// \returns Vector of transformed archive members. 24*f75da0c8SAlexey Lapshin Expected<std::vector<NewArchiveMember>> 25*f75da0c8SAlexey Lapshin createNewArchiveMembers(const MultiFormatConfig &Config, 26*f75da0c8SAlexey Lapshin const object::Archive &Ar); 27*f75da0c8SAlexey Lapshin 28*f75da0c8SAlexey Lapshin } // end namespace objcopy 29*f75da0c8SAlexey Lapshin } // end namespace llvm 30*f75da0c8SAlexey Lapshin 31*f75da0c8SAlexey Lapshin #endif // LLVM_LIB_OBJCOPY_ARCHIVE_H 32