NativeSymbolEnumerator.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- NativeSymbolEnumerator.h - info about enumerator values --*- 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_PDB_NATIVE_NATIVESYMBOLENUMERATOR_H
  14. #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVESYMBOLENUMERATOR_H
  15. #include "llvm/DebugInfo/CodeView/TypeRecord.h"
  16. #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
  17. #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
  18. #include "llvm/DebugInfo/PDB/PDBTypes.h"
  19. namespace llvm {
  20. class raw_ostream;
  21. namespace pdb {
  22. class NativeSession;
  23. class NativeTypeEnum;
  24. class NativeSymbolEnumerator : public NativeRawSymbol {
  25. public:
  26. NativeSymbolEnumerator(NativeSession &Session, SymIndexId Id,
  27. const NativeTypeEnum &Parent,
  28. codeview::EnumeratorRecord Record);
  29. ~NativeSymbolEnumerator() override;
  30. void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
  31. PdbSymbolIdField RecurseIdFields) const override;
  32. SymIndexId getClassParentId() const override;
  33. SymIndexId getLexicalParentId() const override;
  34. std::string getName() const override;
  35. SymIndexId getTypeId() const override;
  36. PDB_DataKind getDataKind() const override;
  37. PDB_LocType getLocationType() const override;
  38. bool isConstType() const override;
  39. bool isVolatileType() const override;
  40. bool isUnalignedType() const override;
  41. Variant getValue() const override;
  42. protected:
  43. const NativeTypeEnum &Parent;
  44. codeview::EnumeratorRecord Record;
  45. };
  46. } // namespace pdb
  47. } // namespace llvm
  48. #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVESYMBOLENUMERATOR_H
  49. #ifdef __GNUC__
  50. #pragma GCC diagnostic pop
  51. #endif