Archive.h 978 B

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