LLVM  16.0.0git
ELFObjcopy.h
Go to the documentation of this file.
1 //===- ELFObjcopy.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_ELF_ELFOBJCOPY_H
10 #define LLVM_OBJCOPY_ELF_ELFOBJCOPY_H
11 
12 namespace llvm {
13 class Error;
14 class MemoryBuffer;
15 class raw_ostream;
16 
17 namespace object {
18 class ELFObjectFileBase;
19 } // end namespace object
20 
21 namespace objcopy {
22 struct CommonConfig;
23 struct ELFConfig;
24 
25 namespace elf {
26 /// Apply the transformations described by \p Config and \p ELFConfig to
27 /// \p In, which must represent an IHex file, and writes the result
28 /// into \p Out.
29 /// \returns any Error encountered whilst performing the operation.
32  raw_ostream &Out);
33 
34 /// Apply the transformations described by \p Config and \p ELFConfig to
35 /// \p In, which is treated as a raw binary input, and writes the result
36 /// into \p Out.
37 /// \returns any Error encountered whilst performing the operation.
40  raw_ostream &Out);
41 
42 /// Apply the transformations described by \p Config and \p ELFConfig to
43 /// \p In and writes the result into \p Out.
44 /// \returns any Error encountered whilst performing the operation.
46  const ELFConfig &ELFConfig,
48 
49 } // end namespace elf
50 } // end namespace objcopy
51 } // end namespace llvm
52 
53 #endif // LLVM_OBJCOPY_ELF_ELFOBJCOPY_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::lltok::Error
@ Error
Definition: LLToken.h:21
llvm::MemoryBuffer
This interface provides simple read-only access to a block of memory, and provides simple methods for...
Definition: MemoryBuffer.h:50
llvm::object::ELFObjectFileBase
Definition: ELFObjectFile.h:51
llvm::objcopy::ELFConfig
Definition: ELFConfig.h:21
llvm::objcopy::elf::executeObjcopyOnBinary
Error executeObjcopyOnBinary(const CommonConfig &Config, const ELFConfig &ELFConfig, object::ELFObjectFileBase &In, raw_ostream &Out)
Apply the transformations described by Config and ELFConfig to In and writes the result into Out.
Definition: ELFObjcopy.cpp:803
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
llvm::tgtok::In
@ In
Definition: TGLexer.h:51
object
bar al al movzbl eax ret Missed when stored in a memory object
Definition: README.txt:1411
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition: Error.h:155
llvm::objcopy::elf::executeObjcopyOnRawBinary
Error executeObjcopyOnRawBinary(const CommonConfig &Config, const ELFConfig &ELFConfig, MemoryBuffer &In, raw_ostream &Out)
Apply the transformations described by Config and ELFConfig to In, which is treated as a raw binary i...
Definition: ELFObjcopy.cpp:785
llvm::objcopy::CommonConfig
Definition: CommonConfig.h:201
llvm::objcopy::elf::executeObjcopyOnIHex
Error executeObjcopyOnIHex(const CommonConfig &Config, const ELFConfig &ELFConfig, MemoryBuffer &In, raw_ostream &Out)
Apply the transformations described by Config and ELFConfig to In, which must represent an IHex file,...
Definition: ELFObjcopy.cpp:770