MCTargetOptionsCommandFlags.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-- MCTargetOptionsCommandFlags.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. //
  14. // This file contains machine code-specific flags that are shared between
  15. // different command line tools.
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H
  19. #define LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H
  20. #include <optional>
  21. #include <string>
  22. namespace llvm {
  23. class MCTargetOptions;
  24. enum class EmitDwarfUnwindType;
  25. namespace mc {
  26. bool getRelaxAll();
  27. std::optional<bool> getExplicitRelaxAll();
  28. bool getIncrementalLinkerCompatible();
  29. int getDwarfVersion();
  30. bool getDwarf64();
  31. EmitDwarfUnwindType getEmitDwarfUnwind();
  32. bool getShowMCInst();
  33. bool getFatalWarnings();
  34. bool getNoWarn();
  35. bool getNoDeprecatedWarn();
  36. bool getNoTypeCheck();
  37. std::string getABIName();
  38. std::string getAsSecureLogFile();
  39. /// Create this object with static storage to register mc-related command
  40. /// line options.
  41. struct RegisterMCTargetOptionsFlags {
  42. RegisterMCTargetOptionsFlags();
  43. };
  44. MCTargetOptions InitMCTargetOptionsFromFlags();
  45. } // namespace mc
  46. } // namespace llvm
  47. #endif
  48. #ifdef __GNUC__
  49. #pragma GCC diagnostic pop
  50. #endif