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 { |
Jordan Rupprecht | 307deab | 2019-01-30 14:36:53 +0000 | [diff] [blame] | 13 | class Error; |
Alexander Shaposhnikov | f4e75a5 | 2018-10-29 21:22:58 +0000 | [diff] [blame] | 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 { |
Jordan Rupprecht | 307deab | 2019-01-30 14:36:53 +0000 | [diff] [blame] | 25 | Error executeObjcopyOnRawBinary(const CopyConfig &Config, MemoryBuffer &In, |
| 26 | Buffer &Out); |
| 27 | Error executeObjcopyOnBinary(const CopyConfig &Config, |
| 28 | object::ELFObjectFileBase &In, Buffer &Out); |
Alexander Shaposhnikov | f4e75a5 | 2018-10-29 21:22:58 +0000 | [diff] [blame] | 29 | |
| 30 | } // end namespace elf |
| 31 | } // end namespace objcopy |
| 32 | } // end namespace llvm |
| 33 | |
| 34 | #endif // LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H |