LLVM 22.0.0git
COFFObjcopy.h
Go to the documentation of this file.
1//===- COFFObjcopy.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_COFF_COFFOBJCOPY_H
10#define LLVM_OBJCOPY_COFF_COFFOBJCOPY_H
11
13
14namespace llvm {
15class Error;
16class raw_ostream;
17
18namespace object {
19class COFFObjectFile;
20} // end namespace object
21
22namespace objcopy {
23struct CommonConfig;
24struct COFFConfig;
25
26namespace coff {
27
28/// Apply the transformations described by \p Config and \p COFFConfig
29/// to \p In and writes the result into \p Out.
30/// \returns any Error encountered whilst performing the operation.
32 const COFFConfig &,
34 raw_ostream &Out);
35
36} // end namespace coff
37} // end namespace objcopy
38} // end namespace llvm
39
40#endif // LLVM_OBJCOPY_COFF_COFFOBJCOPY_H
#define LLVM_ABI
Definition Compiler.h:213
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 COFFConfig &, object::COFFObjectFile &In, raw_ostream &Out)
Apply the transformations described by Config and COFFConfig to In and writes the result into Out.
This is an optimization pass for GlobalISel generic memory operations.