COFFObjcopy.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- COFFObjcopy.h --------------------------------------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_OBJCOPY_COFF_COFFOBJCOPY_H
  14. #define LLVM_OBJCOPY_COFF_COFFOBJCOPY_H
  15. namespace llvm {
  16. class Error;
  17. class raw_ostream;
  18. namespace object {
  19. class COFFObjectFile;
  20. } // end namespace object
  21. namespace objcopy {
  22. struct CommonConfig;
  23. struct COFFConfig;
  24. namespace coff {
  25. /// Apply the transformations described by \p Config and \p COFFConfig
  26. /// to \p In and writes the result into \p Out.
  27. /// \returns any Error encountered whilst performing the operation.
  28. Error executeObjcopyOnBinary(const CommonConfig &Config, const COFFConfig &,
  29. object::COFFObjectFile &In, raw_ostream &Out);
  30. } // end namespace coff
  31. } // end namespace objcopy
  32. } // end namespace llvm
  33. #endif // LLVM_OBJCOPY_COFF_COFFOBJCOPY_H
  34. #ifdef __GNUC__
  35. #pragma GCC diagnostic pop
  36. #endif