MachOObjcopy.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- MachOObjcopy.h -------------------------------------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_OBJCOPY_MACHO_MACHOOBJCOPY_H
  14. #define LLVM_OBJCOPY_MACHO_MACHOOBJCOPY_H
  15. namespace llvm {
  16. class Error;
  17. class raw_ostream;
  18. namespace object {
  19. class MachOObjectFile;
  20. class MachOUniversalBinary;
  21. } // end namespace object
  22. namespace objcopy {
  23. struct CommonConfig;
  24. struct MachOConfig;
  25. class MultiFormatConfig;
  26. namespace macho {
  27. /// Apply the transformations described by \p Config and \p MachOConfig to
  28. /// \p In and writes the result into \p Out.
  29. /// \returns any Error encountered whilst performing the operation.
  30. Error executeObjcopyOnBinary(const CommonConfig &Config,
  31. const MachOConfig &MachOConfig,
  32. object::MachOObjectFile &In, raw_ostream &Out);
  33. /// Apply the transformations described by \p Config and \p MachOConfig to
  34. /// \p In and writes the result into \p Out.
  35. /// \returns any Error encountered whilst performing the operation.
  36. Error executeObjcopyOnMachOUniversalBinary(
  37. const MultiFormatConfig &Config, const object::MachOUniversalBinary &In,
  38. raw_ostream &Out);
  39. } // end namespace macho
  40. } // end namespace objcopy
  41. } // end namespace llvm
  42. #endif // LLVM_OBJCOPY_MACHO_MACHOOBJCOPY_H
  43. #ifdef __GNUC__
  44. #pragma GCC diagnostic pop
  45. #endif