LLVM  14.0.0git
PDBSymDumper.h
Go to the documentation of this file.
1 //===- PDBSymDumper.h - base interface for PDB symbol dumper *- C++ -----*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_PDB_PDBSYMDUMPER_H
10 #define LLVM_DEBUGINFO_PDB_PDBSYMDUMPER_H
11 
12 #include "PDBTypes.h"
13 
14 namespace llvm {
15 
16 class raw_ostream;
17 namespace pdb {
18 
19 class PDBSymDumper {
20 public:
21  PDBSymDumper(bool ShouldRequireImpl);
22  virtual ~PDBSymDumper();
23 
24  virtual void dump(const PDBSymbolAnnotation &Symbol);
25  virtual void dump(const PDBSymbolBlock &Symbol);
26  virtual void dump(const PDBSymbolCompiland &Symbol);
27  virtual void dump(const PDBSymbolCompilandDetails &Symbol);
28  virtual void dump(const PDBSymbolCompilandEnv &Symbol);
29  virtual void dump(const PDBSymbolCustom &Symbol);
30  virtual void dump(const PDBSymbolData &Symbol);
31  virtual void dump(const PDBSymbolExe &Symbol);
32  virtual void dump(const PDBSymbolFunc &Symbol);
33  virtual void dump(const PDBSymbolFuncDebugEnd &Symbol);
34  virtual void dump(const PDBSymbolFuncDebugStart &Symbol);
35  virtual void dump(const PDBSymbolLabel &Symbol);
36  virtual void dump(const PDBSymbolPublicSymbol &Symbol);
37  virtual void dump(const PDBSymbolThunk &Symbol);
38  virtual void dump(const PDBSymbolTypeArray &Symbol);
39  virtual void dump(const PDBSymbolTypeBaseClass &Symbol);
40  virtual void dump(const PDBSymbolTypeBuiltin &Symbol);
41  virtual void dump(const PDBSymbolTypeCustom &Symbol);
42  virtual void dump(const PDBSymbolTypeDimension &Symbol);
43  virtual void dump(const PDBSymbolTypeEnum &Symbol);
44  virtual void dump(const PDBSymbolTypeFriend &Symbol);
45  virtual void dump(const PDBSymbolTypeFunctionArg &Symbol);
46  virtual void dump(const PDBSymbolTypeFunctionSig &Symbol);
47  virtual void dump(const PDBSymbolTypeManaged &Symbol);
48  virtual void dump(const PDBSymbolTypePointer &Symbol);
49  virtual void dump(const PDBSymbolTypeTypedef &Symbol);
50  virtual void dump(const PDBSymbolTypeUDT &Symbol);
51  virtual void dump(const PDBSymbolTypeVTable &Symbol);
52  virtual void dump(const PDBSymbolTypeVTableShape &Symbol);
53  virtual void dump(const PDBSymbolUnknown &Symbol);
54  virtual void dump(const PDBSymbolUsingNamespace &Symbol);
55 
56  virtual void dumpRight(const PDBSymbolTypeArray &Symbol) {}
57  virtual void dumpRight(const PDBSymbolTypeBaseClass &Symbol) {}
58  virtual void dumpRight(const PDBSymbolTypeBuiltin &Symbol) {}
59  virtual void dumpRight(const PDBSymbolTypeCustom &Symbol) {}
60  virtual void dumpRight(const PDBSymbolTypeDimension &Symbol) {}
61  virtual void dumpRight(const PDBSymbolTypeEnum &Symbol) {}
62  virtual void dumpRight(const PDBSymbolTypeFriend &Symbol) {}
63  virtual void dumpRight(const PDBSymbolTypeFunctionArg &Symbol) {}
64  virtual void dumpRight(const PDBSymbolTypeFunctionSig &Symbol) {}
65  virtual void dumpRight(const PDBSymbolTypeManaged &Symbol) {}
66  virtual void dumpRight(const PDBSymbolTypePointer &Symbol) {}
67  virtual void dumpRight(const PDBSymbolTypeTypedef &Symbol) {}
68  virtual void dumpRight(const PDBSymbolTypeUDT &Symbol) {}
69  virtual void dumpRight(const PDBSymbolTypeVTable &Symbol) {}
70  virtual void dumpRight(const PDBSymbolTypeVTableShape &Symbol) {}
71 
72 private:
73  bool RequireImpl;
74 };
75 }
76 }
77 
78 #endif
llvm::pdb::PDBSymbolCompilandEnv
Definition: PDBSymbolCompilandEnv.h:19
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeTypedef &Symbol)
Definition: PDBSymDumper.h:67
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::pdb::PDBSymbolPublicSymbol
Definition: PDBSymbolPublicSymbol.h:20
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeFunctionSig &Symbol)
Definition: PDBSymDumper.h:64
llvm::pdb::PDBSymbolTypeEnum
Definition: PDBSymbolTypeEnum.h:22
llvm::pdb::PDBSymbolTypeVTable
Definition: PDBSymbolTypeVTable.h:20
llvm::pdb::PDBSymbolData
Definition: PDBSymbolData.h:22
llvm::pdb::PDBSymDumper::~PDBSymDumper
virtual ~PDBSymDumper()
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeUDT &Symbol)
Definition: PDBSymDumper.h:68
llvm::pdb::PDBSymbolTypeTypedef
Definition: PDBSymbolTypeTypedef.h:20
llvm::pdb::PDBSymbolTypeFriend
Definition: PDBSymbolTypeFriend.h:20
llvm::pdb::PDBSymbolTypeDimension
Definition: PDBSymbolTypeDimension.h:20
llvm::pdb::PDBSymbolTypeFunctionArg
Definition: PDBSymbolTypeFunctionArg.h:20
llvm::pdb::PDBSymbolExe
Definition: PDBSymbolExe.h:21
llvm::pdb::PDBSymDumper::dump
virtual void dump(const PDBSymbolAnnotation &Symbol)
Definition: PDBSymDumper.cpp:24
llvm::pdb::PDBSymbolTypeBaseClass
Definition: PDBSymbolTypeBaseClass.h:23
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeFriend &Symbol)
Definition: PDBSymDumper.h:62
llvm::pdb::PDBSymbolTypeCustom
Definition: PDBSymbolTypeCustom.h:20
llvm::pdb::PDBSymDumper::PDBSymDumper
PDBSymDumper(bool ShouldRequireImpl)
Definition: PDBSymDumper.cpp:19
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeCustom &Symbol)
Definition: PDBSymDumper.h:59
PDBTypes.h
llvm::pdb::PDBSymbolTypeArray
Definition: PDBSymbolTypeArray.h:20
llvm::pdb::PDBSymbolTypeFunctionSig
Definition: PDBSymbolTypeFunctionSig.h:20
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeVTableShape &Symbol)
Definition: PDBSymDumper.h:70
llvm::pdb::PDBSymbolTypePointer
Definition: PDBSymbolTypePointer.h:20
llvm::pdb::PDBSymbolTypeVTableShape
Definition: PDBSymbolTypeVTableShape.h:20
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeBaseClass &Symbol)
Definition: PDBSymDumper.h:57
llvm::pdb::PDBSymbolBlock
Definition: PDBSymbolBlock.h:20
llvm::pdb::PDBSymbolAnnotation
Definition: PDBSymbolAnnotation.h:19
llvm::pdb::PDBSymDumper
Definition: PDBSymDumper.h:19
llvm::pdb::PDBSymbolLabel
Definition: PDBSymbolLabel.h:20
llvm::pdb::PDBSymbolFuncDebugStart
Definition: PDBSymbolFuncDebugStart.h:20
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypePointer &Symbol)
Definition: PDBSymDumper.h:66
llvm::pdb::PDBSymbolThunk
Definition: PDBSymbolThunk.h:20
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeManaged &Symbol)
Definition: PDBSymDumper.h:65
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeBuiltin &Symbol)
Definition: PDBSymDumper.h:58
llvm::pdb::PDBSymbolUnknown
Definition: PDBSymbolUnknown.h:19
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeFunctionArg &Symbol)
Definition: PDBSymDumper.h:63
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeDimension &Symbol)
Definition: PDBSymDumper.h:60
llvm::pdb::PDBSymbolFuncDebugEnd
Definition: PDBSymbolFuncDebugEnd.h:21
llvm::pdb::PDBSymbolTypeManaged
Definition: PDBSymbolTypeManaged.h:20
llvm::pdb::PDBSymbolCompilandDetails
Definition: PDBSymbolCompilandDetails.h:20
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeArray &Symbol)
Definition: PDBSymDumper.h:56
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeVTable &Symbol)
Definition: PDBSymDumper.h:69
llvm::ARMBuildAttrs::Symbol
@ Symbol
Definition: ARMBuildAttributes.h:79
llvm::pdb::PDBSymDumper::dumpRight
virtual void dumpRight(const PDBSymbolTypeEnum &Symbol)
Definition: PDBSymDumper.h:61
llvm::pdb::PDBSymbolTypeBuiltin
Definition: PDBSymbolTypeBuiltin.h:20
llvm::pdb::PDBSymbolFunc
Definition: PDBSymbolFunc.h:23
llvm::pdb::PDBSymbolUsingNamespace
Definition: PDBSymbolUsingNamespace.h:20
llvm::pdb::PDBSymbolCompiland
Definition: PDBSymbolCompiland.h:21
llvm::pdb::PDBSymbolTypeUDT
Definition: PDBSymbolTypeUDT.h:24
llvm::pdb::PDBSymbolCustom
PDBSymbolCustom represents symbols that are compiler-specific and do not fit anywhere else in the lex...
Definition: PDBSymbolCustom.h:24