MCTargetOptionsCommandFlags.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 "llvm/ADT/Optional.h"
  21. #include <string>
  22. namespace llvm {
  23. class MCTargetOptions;
  24. namespace mc {
  25. bool getRelaxAll();
  26. Optional<bool> getExplicitRelaxAll();
  27. bool getIncrementalLinkerCompatible();
  28. int getDwarfVersion();
  29. bool getDwarf64();
  30. bool getShowMCInst();
  31. bool getFatalWarnings();
  32. bool getNoWarn();
  33. bool getNoDeprecatedWarn();
  34. bool getNoTypeCheck();
  35. std::string getABIName();
  36. /// Create this object with static storage to register mc-related command
  37. /// line options.
  38. struct RegisterMCTargetOptionsFlags {
  39. RegisterMCTargetOptionsFlags();
  40. };
  41. MCTargetOptions InitMCTargetOptionsFromFlags();
  42. } // namespace mc
  43. } // namespace llvm
  44. #endif
  45. #ifdef __GNUC__
  46. #pragma GCC diagnostic pop
  47. #endif