]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / llvm-objcopy / ELF / ELFObjcopy.h
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_TOOLS_OBJCOPY_ELFOBJCOPY_H
10 #define LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H
11
12 namespace llvm {
13 class Error;
14 class MemoryBuffer;
15
16 namespace object {
17 class ELFObjectFileBase;
18 } // end namespace object
19
20 namespace objcopy {
21 struct CopyConfig;
22 class Buffer;
23
24 namespace elf {
25 Error executeObjcopyOnIHex(const CopyConfig &Config, MemoryBuffer &In,
26                            Buffer &Out);
27 Error executeObjcopyOnRawBinary(const CopyConfig &Config, MemoryBuffer &In,
28                                 Buffer &Out);
29 Error executeObjcopyOnBinary(const CopyConfig &Config,
30                              object::ELFObjectFileBase &In, Buffer &Out);
31
32 } // end namespace elf
33 } // end namespace objcopy
34 } // end namespace llvm
35
36 #endif // LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H