1 //===- PDBTypes.h - Defines enums for various fields contained in PDB ---*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_PDBTYPES_H
11 #define LLVM_DEBUGINFO_PDB_PDBTYPES_H
18 class PDBSymbolCompiland;
23 template <class T> class IPDBEnumChildren;
28 typedef IPDBEnumChildren<PDBSymbol> IPDBEnumSymbols;
29 typedef IPDBEnumChildren<IPDBSourceFile> IPDBEnumSourceFiles;
30 typedef IPDBEnumChildren<IPDBDataStream> IPDBEnumDataStreams;
31 typedef IPDBEnumChildren<PDBSymbolCompiland> IPDBEnumCompilands;
34 class PDBSymbolCompiland;
35 class PDBSymbolCompilandDetails;
36 class PDBSymbolCompilandEnv;
40 class PDBSymbolAnnotation;
42 class PDBSymbolPublicSymbol;
43 class PDBSymbolTypeUDT;
44 class PDBSymbolTypeEnum;
45 class PDBSymbolTypeFunctionSig;
46 class PDBSymbolTypePointer;
47 class PDBSymbolTypeArray;
48 class PDBSymbolTypeBuiltin;
49 class PDBSymbolTypeTypedef;
50 class PDBSymbolTypeBaseClass;
51 class PDBSymbolTypeFriend;
52 class PDBSymbolTypeFunctionArg;
53 class PDBSymbolFuncDebugStart;
54 class PDBSymbolFuncDebugEnd;
55 class PDBSymbolUsingNamespace;
56 class PDBSymbolTypeVTableShape;
57 class PDBSymbolTypeVTable;
58 class PDBSymbolCustom;
60 class PDBSymbolTypeCustom;
61 class PDBSymbolTypeManaged;
62 class PDBSymbolTypeDimension;
63 class PDBSymbolUnknown;
65 /// Specifies which PDB reader implementation is to be used. Only a value
66 /// of PDB_ReaderType::DIA is supported.
67 enum class PDB_ReaderType {
74 /// Defines a 128-bit unique identifier. This maps to a GUID on Windows, but
75 /// is abstracted here for the purposes of non-Windows platforms that don't have
76 /// the GUID structure defined.
82 /// An enumeration indicating the type of data contained in this table.
83 enum class PDB_TableType {
93 /// Defines flags used for enumerating child symbols. This corresponds to the
94 /// NameSearchOptions enumeration which is documented here:
95 /// https://msdn.microsoft.com/en-us/library/yat28ads.aspx
96 enum PDB_NameSearchFlags {
98 NS_CaseSensitive = 0x1,
99 NS_CaseInsensitive = 0x2,
100 NS_FileNameExtMatch = 0x4,
102 NS_UndecoratedName = 0x10
105 /// Specifies the hash algorithm that a source file from a PDB was hashed with.
106 /// This corresponds to the CV_SourceChksum_t enumeration and are documented
107 /// here: https://msdn.microsoft.com/en-us/library/e96az21x.aspx
108 enum class PDB_Checksum { None = 0, MD5 = 1, SHA1 = 2 };
110 /// These values correspond to the CV_CPU_TYPE_e enumeration, and are documented
111 /// here: https://msdn.microsoft.com/en-us/library/b2fc64ek.aspx
171 D3D11_Shader = 0x100,
174 enum class PDB_Machine {
199 /// These values correspond to the CV_call_e enumeration, and are documented
200 /// at the following locations:
201 /// https://msdn.microsoft.com/en-us/library/b2fc64ek.aspx
202 /// https://msdn.microsoft.com/en-us/library/windows/desktop/ms680207(v=vs.85).aspx
204 enum class PDB_CallingConv {
229 NearVectorcall = 0x18,
233 /// These values correspond to the CV_CFL_LANG enumeration, and are documented
234 /// here: https://msdn.microsoft.com/en-us/library/bw3aekw6.aspx
235 enum class PDB_Lang {
255 /// These values correspond to the DataKind enumeration, and are documented
256 /// here: https://msdn.microsoft.com/en-us/library/b2x2t313.aspx
257 enum class PDB_DataKind {
270 /// These values correspond to the SymTagEnum enumeration, and are documented
271 /// here: https://msdn.microsoft.com/en-us/library/bkedss5f.aspx
272 enum class PDB_SymType {
307 /// These values correspond to the LocationType enumeration, and are documented
308 /// here: https://msdn.microsoft.com/en-us/library/f57kaez3.aspx
309 enum class PDB_LocType {
324 /// These values correspond to the THUNK_ORDINAL enumeration, and are documented
325 /// here: https://msdn.microsoft.com/en-us/library/dh0k8hft.aspx
326 enum class PDB_ThunkOrdinal {
336 /// These values correspond to the UdtKind enumeration, and are documented
337 /// here: https://msdn.microsoft.com/en-us/library/wcstk66t.aspx
338 enum class PDB_UdtType { Struct, Class, Union, Interface };
340 /// These values correspond to the StackFrameTypeEnum enumeration, and are
341 /// documented here: https://msdn.microsoft.com/en-us/library/bc5207xw.aspx.
342 enum class PDB_StackFrameType { FPO, KernelTrap, KernelTSS, EBP, FrameData };
344 /// These values correspond to the StackFrameTypeEnum enumeration, and are
345 /// documented here: https://msdn.microsoft.com/en-us/library/bc5207xw.aspx.
346 enum class PDB_MemoryType { Code, Data, Stack, HeapCode };
348 /// These values correspond to the Basictype enumeration, and are documented
349 /// here: https://msdn.microsoft.com/en-us/library/4szdtzc3.aspx
350 enum class PDB_BuiltinType {
371 enum class PDB_MemberAccess { Private = 1, Protected = 2, Public = 3 };