Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:16

0001 //===- MachOObjcopy.h -------------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_OBJCOPY_MACHO_MACHOOBJCOPY_H
0010 #define LLVM_OBJCOPY_MACHO_MACHOOBJCOPY_H
0011 
0012 namespace llvm {
0013 class Error;
0014 class raw_ostream;
0015 
0016 namespace object {
0017 class MachOObjectFile;
0018 class MachOUniversalBinary;
0019 } // end namespace object
0020 
0021 namespace objcopy {
0022 struct CommonConfig;
0023 struct MachOConfig;
0024 class MultiFormatConfig;
0025 
0026 namespace macho {
0027 /// Apply the transformations described by \p Config and \p MachOConfig to
0028 /// \p In and writes the result into \p Out.
0029 /// \returns any Error encountered whilst performing the operation.
0030 Error executeObjcopyOnBinary(const CommonConfig &Config,
0031                              const MachOConfig &MachOConfig,
0032                              object::MachOObjectFile &In, raw_ostream &Out);
0033 
0034 /// Apply the transformations described by \p Config and \p MachOConfig to
0035 /// \p In and writes the result into \p Out.
0036 /// \returns any Error encountered whilst performing the operation.
0037 Error executeObjcopyOnMachOUniversalBinary(
0038     const MultiFormatConfig &Config, const object::MachOUniversalBinary &In,
0039     raw_ostream &Out);
0040 
0041 } // end namespace macho
0042 } // end namespace objcopy
0043 } // end namespace llvm
0044 
0045 #endif // LLVM_OBJCOPY_MACHO_MACHOOBJCOPY_H