Alexander Shaposhnikov | f4e75a5 | 2018-10-29 21:22:58 +0000 | [diff] [blame] | 1 | //===- ELFObjcopy.h ---------------------------------------------*- C++ -*-===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame^] | 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 |
Alexander Shaposhnikov | f4e75a5 | 2018-10-29 21:22:58 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H |
| 10 | #define LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H |
| 11 | |
| 12 | namespace llvm { |
| 13 | class MemoryBuffer; |
| 14 | |
| 15 | namespace object { |
| 16 | class ELFObjectFileBase; |
| 17 | } // end namespace object |
| 18 | |
| 19 | namespace objcopy { |
| 20 | struct CopyConfig; |
| 21 | class Buffer; |
| 22 | |
| 23 | namespace elf { |
| 24 | void executeObjcopyOnRawBinary(const CopyConfig &Config, MemoryBuffer &In, |
| 25 | Buffer &Out); |
| 26 | void executeObjcopyOnBinary(const CopyConfig &Config, |
| 27 | object::ELFObjectFileBase &In, Buffer &Out); |
| 28 | |
| 29 | } // end namespace elf |
| 30 | } // end namespace objcopy |
| 31 | } // end namespace llvm |
| 32 | |
| 33 | #endif // LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H |