PDBSymbolData.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- PDBSymbolData.h - PDB data (e.g. variable) accessors -----*- 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_PDBSYMBOLDATA_H
  14. #define LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
  15. #include "PDBSymbol.h"
  16. #include "PDBTypes.h"
  17. #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
  18. namespace llvm {
  19. namespace pdb {
  20. class PDBSymDumper;
  21. class PDBSymbolData : public PDBSymbol {
  22. DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Data)
  23. public:
  24. void dump(PDBSymDumper &Dumper) const override;
  25. FORWARD_SYMBOL_METHOD(getAccess)
  26. FORWARD_SYMBOL_METHOD(getAddressOffset)
  27. FORWARD_SYMBOL_METHOD(getAddressSection)
  28. FORWARD_SYMBOL_METHOD(getAddressTaken)
  29. FORWARD_SYMBOL_METHOD(getBitPosition)
  30. FORWARD_SYMBOL_ID_METHOD(getClassParent)
  31. FORWARD_SYMBOL_METHOD(isCompilerGenerated)
  32. FORWARD_SYMBOL_METHOD(isConstType)
  33. FORWARD_SYMBOL_METHOD(getDataKind)
  34. FORWARD_SYMBOL_METHOD(isAggregated)
  35. FORWARD_SYMBOL_METHOD(isSplitted)
  36. FORWARD_SYMBOL_METHOD(getLength)
  37. FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
  38. FORWARD_SYMBOL_METHOD(getLocationType)
  39. FORWARD_SYMBOL_METHOD(getName)
  40. FORWARD_SYMBOL_METHOD(getOffset)
  41. FORWARD_SYMBOL_METHOD(getRegisterId)
  42. FORWARD_SYMBOL_METHOD(getRelativeVirtualAddress)
  43. FORWARD_SYMBOL_METHOD(getSlot)
  44. FORWARD_SYMBOL_METHOD(getToken)
  45. FORWARD_SYMBOL_ID_METHOD(getType)
  46. FORWARD_SYMBOL_METHOD(isUnalignedType)
  47. FORWARD_SYMBOL_METHOD(getValue)
  48. FORWARD_SYMBOL_METHOD(getVirtualAddress)
  49. FORWARD_SYMBOL_METHOD(isVolatileType)
  50. std::unique_ptr<IPDBEnumLineNumbers> getLineNumbers() const;
  51. uint32_t getCompilandId() const;
  52. };
  53. } // namespace pdb
  54. } // namespace llvm
  55. #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
  56. #ifdef __GNUC__
  57. #pragma GCC diagnostic pop
  58. #endif