LLVM 22.0.0git
MachOObjcopy.h
Go to the documentation of this file.
1//===- MachOObjcopy.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
9#ifndef LLVM_OBJCOPY_MACHO_MACHOOBJCOPY_H
10#define LLVM_OBJCOPY_MACHO_MACHOOBJCOPY_H
11
13
14namespace llvm {
15class Error;
16class raw_ostream;
17
18namespace object {
19class MachOObjectFile;
20class MachOUniversalBinary;
21} // end namespace object
22
23namespace objcopy {
24struct CommonConfig;
25struct MachOConfig;
26class MultiFormatConfig;
27
28namespace macho {
29/// Apply the transformations described by \p Config and \p MachOConfig to
30/// \p In and writes the result into \p Out.
31/// \returns any Error encountered whilst performing the operation.
35 raw_ostream &Out);
36
37/// Apply the transformations described by \p Config and \p MachOConfig to
38/// \p In and writes the result into \p Out.
39/// \returns any Error encountered whilst performing the operation.
42 raw_ostream &Out);
43
44} // end namespace macho
45} // end namespace objcopy
46} // end namespace llvm
47
48#endif // LLVM_OBJCOPY_MACHO_MACHOOBJCOPY_H
#define LLVM_ABI
Definition: Compiler.h:213
RelaxConfig Config
Definition: ELF_riscv.cpp:506
Lightweight error class with error context and mandatory checking.
Definition: Error.h:159
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
LLVM_ABI Error executeObjcopyOnBinary(const CommonConfig &Config, const MachOConfig &MachOConfig, object::MachOObjectFile &In, raw_ostream &Out)
Apply the transformations described by Config and MachOConfig to In and writes the result into Out.
LLVM_ABI Error executeObjcopyOnMachOUniversalBinary(const MultiFormatConfig &Config, const object::MachOUniversalBinary &In, raw_ostream &Out)
Apply the transformations described by Config and MachOConfig to In and writes the result into Out.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18