DIARawSymbol.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. //===- DIARawSymbol.h - DIA implementation of IPDBRawSymbol ----*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef LLVM_DEBUGINFO_PDB_DIA_DIARAWSYMBOL_H
  10. #define LLVM_DEBUGINFO_PDB_DIA_DIARAWSYMBOL_H
  11. #include "DIASupport.h"
  12. #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
  13. namespace llvm {
  14. class DIASession;
  15. class DIARawSymbol : public IPDBRawSymbol {
  16. public:
  17. DIARawSymbol(const DIASession &PDBSession, CComPtr<IDiaSymbol> DiaSymbol);
  18. void dump(raw_ostream &OS, int Indent) const override;
  19. CComPtr<IDiaSymbol> getDiaSymbol() const { return Symbol; }
  20. std::unique_ptr<IPDBEnumSymbols>
  21. findChildren(PDB_SymType Type) const override;
  22. std::unique_ptr<IPDBEnumSymbols>
  23. findChildren(PDB_SymType Type, StringRef Name,
  24. PDB_NameSearchFlags Flags) const override;
  25. std::unique_ptr<IPDBEnumSymbols>
  26. findChildrenByRVA(PDB_SymType Type, StringRef Name, PDB_NameSearchFlags Flags,
  27. uint32_t RVA) const override;
  28. std::unique_ptr<IPDBEnumSymbols>
  29. findInlineFramesByRVA(uint32_t RVA) const override;
  30. void getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes) const override;
  31. void getFrontEndVersion(VersionInfo &Version) const override;
  32. void getBackEndVersion(VersionInfo &Version) const override;
  33. PDB_MemberAccess getAccess() const override;
  34. uint32_t getAddressOffset() const override;
  35. uint32_t getAddressSection() const override;
  36. uint32_t getAge() const override;
  37. uint32_t getArrayIndexTypeId() const override;
  38. uint32_t getBaseDataOffset() const override;
  39. uint32_t getBaseDataSlot() const override;
  40. uint32_t getBaseSymbolId() const override;
  41. PDB_BuiltinType getBuiltinType() const override;
  42. uint32_t getBitPosition() const override;
  43. PDB_CallingConv getCallingConvention() const override;
  44. uint32_t getClassParentId() const override;
  45. std::string getCompilerName() const override;
  46. uint32_t getCount() const override;
  47. uint32_t getCountLiveRanges() const override;
  48. PDB_Lang getLanguage() const override;
  49. uint32_t getLexicalParentId() const override;
  50. std::string getLibraryName() const override;
  51. uint32_t getLiveRangeStartAddressOffset() const override;
  52. uint32_t getLiveRangeStartAddressSection() const override;
  53. uint32_t getLiveRangeStartRelativeVirtualAddress() const override;
  54. PDB_RegisterId getLocalBasePointerRegisterId() const override;
  55. uint32_t getLowerBoundId() const override;
  56. uint32_t getMemorySpaceKind() const override;
  57. std::string getName() const override;
  58. uint32_t getNumberOfAcceleratorPointerTags() const override;
  59. uint32_t getNumberOfColumns() const override;
  60. uint32_t getNumberOfModifiers() const override;
  61. uint32_t getNumberOfRegisterIndices() const override;
  62. uint32_t getNumberOfRows() const override;
  63. std::string getObjectFileName() const override;
  64. uint32_t getOemId() const override;
  65. uint32_t getOemSymbolId() const override;
  66. uint32_t getOffsetInUdt() const override;
  67. PDB_Cpu getPlatform() const override;
  68. uint32_t getRank() const override;
  69. PDB_RegisterId getRegisterId() const override;
  70. uint32_t getRegisterType() const override;
  71. uint32_t getRelativeVirtualAddress() const override;
  72. uint32_t getSamplerSlot() const override;
  73. uint32_t getSignature() const override;
  74. uint32_t getSizeInUdt() const override;
  75. uint32_t getSlot() const override;
  76. std::string getSourceFileName() const override;
  77. uint32_t getStride() const override;
  78. uint32_t getSubTypeId() const override;
  79. std::string getSymbolsFileName() const override;
  80. uint32_t getSymIndexId() const override;
  81. uint32_t getTargetOffset() const override;
  82. uint32_t getTargetRelativeVirtualAddress() const override;
  83. uint64_t getTargetVirtualAddress() const override;
  84. uint32_t getTargetSection() const override;
  85. uint32_t getTextureSlot() const override;
  86. uint32_t getTimeStamp() const override;
  87. uint32_t getToken() const override;
  88. uint32_t getTypeId() const override;
  89. uint32_t getUavSlot() const override;
  90. std::string getUndecoratedName() const override;
  91. uint32_t getUnmodifiedTypeId() const override;
  92. uint32_t getUpperBoundId() const override;
  93. Variant getValue() const override;
  94. uint32_t getVirtualBaseDispIndex() const override;
  95. uint32_t getVirtualBaseOffset() const override;
  96. uint32_t getVirtualTableShapeId() const override;
  97. PDB_DataKind getDataKind() const override;
  98. PDB_SymType getSymTag() const override;
  99. PDB_UniqueId getGuid() const override;
  100. int32_t getOffset() const override;
  101. int32_t getThisAdjust() const override;
  102. int32_t getVirtualBasePointerOffset() const override;
  103. PDB_LocType getLocationType() const override;
  104. PDB_Machine getMachineType() const override;
  105. PDB_ThunkOrdinal getThunkOrdinal() const override;
  106. uint64_t getLength() const override;
  107. uint64_t getLiveRangeLength() const override;
  108. uint64_t getVirtualAddress() const override;
  109. PDB_UdtType getUdtKind() const override;
  110. bool hasConstructor() const override;
  111. bool hasCustomCallingConvention() const override;
  112. bool hasFarReturn() const override;
  113. bool isCode() const override;
  114. bool isCompilerGenerated() const override;
  115. bool isConstType() const override;
  116. bool isEditAndContinueEnabled() const override;
  117. bool isFunction() const override;
  118. bool getAddressTaken() const override;
  119. bool getNoStackOrdering() const override;
  120. bool hasAlloca() const override;
  121. bool hasAssignmentOperator() const override;
  122. bool hasCTypes() const override;
  123. bool hasCastOperator() const override;
  124. bool hasDebugInfo() const override;
  125. bool hasEH() const override;
  126. bool hasEHa() const override;
  127. bool hasInlAsm() const override;
  128. bool hasInlineAttribute() const override;
  129. bool hasInterruptReturn() const override;
  130. bool hasFramePointer() const override;
  131. bool hasLongJump() const override;
  132. bool hasManagedCode() const override;
  133. bool hasNestedTypes() const override;
  134. bool hasNoInlineAttribute() const override;
  135. bool hasNoReturnAttribute() const override;
  136. bool hasOptimizedCodeDebugInfo() const override;
  137. bool hasOverloadedOperator() const override;
  138. bool hasSEH() const override;
  139. bool hasSecurityChecks() const override;
  140. bool hasSetJump() const override;
  141. bool hasStrictGSCheck() const override;
  142. bool isAcceleratorGroupSharedLocal() const override;
  143. bool isAcceleratorPointerTagLiveRange() const override;
  144. bool isAcceleratorStubFunction() const override;
  145. bool isAggregated() const override;
  146. bool isIntroVirtualFunction() const override;
  147. bool isCVTCIL() const override;
  148. bool isConstructorVirtualBase() const override;
  149. bool isCxxReturnUdt() const override;
  150. bool isDataAligned() const override;
  151. bool isHLSLData() const override;
  152. bool isHotpatchable() const override;
  153. bool isIndirectVirtualBaseClass() const override;
  154. bool isInterfaceUdt() const override;
  155. bool isIntrinsic() const override;
  156. bool isLTCG() const override;
  157. bool isLocationControlFlowDependent() const override;
  158. bool isMSILNetmodule() const override;
  159. bool isMatrixRowMajor() const override;
  160. bool isManagedCode() const override;
  161. bool isMSILCode() const override;
  162. bool isMultipleInheritance() const override;
  163. bool isNaked() const override;
  164. bool isNested() const override;
  165. bool isOptimizedAway() const override;
  166. bool isPacked() const override;
  167. bool isPointerBasedOnSymbolValue() const override;
  168. bool isPointerToDataMember() const override;
  169. bool isPointerToMemberFunction() const override;
  170. bool isPureVirtual() const override;
  171. bool isRValueReference() const override;
  172. bool isRefUdt() const override;
  173. bool isReference() const override;
  174. bool isRestrictedType() const override;
  175. bool isReturnValue() const override;
  176. bool isSafeBuffers() const override;
  177. bool isScoped() const override;
  178. bool isSdl() const override;
  179. bool isSingleInheritance() const override;
  180. bool isSplitted() const override;
  181. bool isStatic() const override;
  182. bool hasPrivateSymbols() const override;
  183. bool isUnalignedType() const override;
  184. bool isUnreached() const override;
  185. bool isValueUdt() const override;
  186. bool isVirtual() const override;
  187. bool isVirtualBaseClass() const override;
  188. bool isVirtualInheritance() const override;
  189. bool isVolatileType() const override;
  190. bool wasInlined() const override;
  191. std::string getUnused() const override;
  192. private:
  193. const DIASession &Session;
  194. CComPtr<IDiaSymbol> Symbol;
  195. };
  196. }
  197. #endif