EnumTables.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- EnumTables.h - Enum to string conversion tables ----------*- 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_DEBUGINFO_CODEVIEW_ENUMTABLES_H
  14. #define LLVM_DEBUGINFO_CODEVIEW_ENUMTABLES_H
  15. #include "llvm/ADT/ArrayRef.h"
  16. #include "llvm/BinaryFormat/COFF.h"
  17. #include "llvm/DebugInfo/CodeView/CodeView.h"
  18. #include "llvm/Support/ScopedPrinter.h"
  19. #include <cstdint>
  20. namespace llvm {
  21. namespace codeview {
  22. ArrayRef<EnumEntry<SymbolKind>> getSymbolTypeNames();
  23. ArrayRef<EnumEntry<TypeLeafKind>> getTypeLeafNames();
  24. ArrayRef<EnumEntry<uint16_t>> getRegisterNames(CPUType Cpu);
  25. ArrayRef<EnumEntry<uint32_t>> getPublicSymFlagNames();
  26. ArrayRef<EnumEntry<uint8_t>> getProcSymFlagNames();
  27. ArrayRef<EnumEntry<uint16_t>> getLocalFlagNames();
  28. ArrayRef<EnumEntry<uint8_t>> getFrameCookieKindNames();
  29. ArrayRef<EnumEntry<SourceLanguage>> getSourceLanguageNames();
  30. ArrayRef<EnumEntry<uint32_t>> getCompileSym2FlagNames();
  31. ArrayRef<EnumEntry<uint32_t>> getCompileSym3FlagNames();
  32. ArrayRef<EnumEntry<uint32_t>> getFileChecksumNames();
  33. ArrayRef<EnumEntry<unsigned>> getCPUTypeNames();
  34. ArrayRef<EnumEntry<uint32_t>> getFrameProcSymFlagNames();
  35. ArrayRef<EnumEntry<uint16_t>> getExportSymFlagNames();
  36. ArrayRef<EnumEntry<uint32_t>> getModuleSubstreamKindNames();
  37. ArrayRef<EnumEntry<uint8_t>> getThunkOrdinalNames();
  38. ArrayRef<EnumEntry<uint16_t>> getTrampolineNames();
  39. ArrayRef<EnumEntry<COFF::SectionCharacteristics>>
  40. getImageSectionCharacteristicNames();
  41. ArrayRef<EnumEntry<uint16_t>> getClassOptionNames();
  42. ArrayRef<EnumEntry<uint8_t>> getMemberAccessNames();
  43. ArrayRef<EnumEntry<uint16_t>> getMethodOptionNames();
  44. ArrayRef<EnumEntry<uint16_t>> getMemberKindNames();
  45. ArrayRef<EnumEntry<uint8_t>> getPtrKindNames();
  46. ArrayRef<EnumEntry<uint8_t>> getPtrModeNames();
  47. ArrayRef<EnumEntry<uint16_t>> getPtrMemberRepNames();
  48. ArrayRef<EnumEntry<uint16_t>> getTypeModifierNames();
  49. ArrayRef<EnumEntry<uint8_t>> getCallingConventions();
  50. ArrayRef<EnumEntry<uint8_t>> getFunctionOptionEnum();
  51. ArrayRef<EnumEntry<uint16_t>> getLabelTypeEnum();
  52. } // end namespace codeview
  53. } // end namespace llvm
  54. #endif // LLVM_DEBUGINFO_CODEVIEW_ENUMTABLES_H
  55. #ifdef __GNUC__
  56. #pragma GCC diagnostic pop
  57. #endif