COFFConfig.h 989 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- COFFConfig.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_COFFCONFIG_H
  14. #define LLVM_OBJCOPY_COFF_COFFCONFIG_H
  15. #include <optional>
  16. namespace llvm {
  17. namespace objcopy {
  18. // Coff specific configuration for copying/stripping a single file.
  19. struct COFFConfig {
  20. std::optional<unsigned> Subsystem;
  21. std::optional<unsigned> MajorSubsystemVersion;
  22. std::optional<unsigned> MinorSubsystemVersion;
  23. };
  24. } // namespace objcopy
  25. } // namespace llvm
  26. #endif // LLVM_OBJCOPY_COFF_COFFCONFIG_H
  27. #ifdef __GNUC__
  28. #pragma GCC diagnostic pop
  29. #endif