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