ELFObjcopy.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H
  9. #define LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H
  10. namespace llvm {
  11. class Error;
  12. class MemoryBuffer;
  13. namespace object {
  14. class ELFObjectFileBase;
  15. } // end namespace object
  16. namespace objcopy {
  17. struct CopyConfig;
  18. class Buffer;
  19. namespace elf {
  20. Error executeObjcopyOnIHex(const CopyConfig &Config, MemoryBuffer &In,
  21. Buffer &Out);
  22. Error executeObjcopyOnRawBinary(const CopyConfig &Config, MemoryBuffer &In,
  23. Buffer &Out);
  24. Error executeObjcopyOnBinary(const CopyConfig &Config,
  25. object::ELFObjectFileBase &In, Buffer &Out);
  26. } // end namespace elf
  27. } // end namespace objcopy
  28. } // end namespace llvm
  29. #endif // LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H