1 //===- PrettyFunctionDumper.h --------------------------------- *- C++ --*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H
10 #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H
12 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
18 class FunctionDumper
: public PDBSymDumper
{
20 FunctionDumper(LinePrinter
&P
);
22 enum class PointerType
{ None
, Pointer
, Reference
};
24 void start(const PDBSymbolTypeFunctionSig
&Symbol
, const char *Name
,
26 void start(const PDBSymbolFunc
&Symbol
, PointerType Pointer
);
28 void dump(const PDBSymbolTypeArray
&Symbol
) override
;
29 void dump(const PDBSymbolTypeBuiltin
&Symbol
) override
;
30 void dump(const PDBSymbolTypeEnum
&Symbol
) override
;
31 void dump(const PDBSymbolTypeFunctionArg
&Symbol
) override
;
32 void dump(const PDBSymbolTypePointer
&Symbol
) override
;
33 void dump(const PDBSymbolTypeTypedef
&Symbol
) override
;
34 void dump(const PDBSymbolTypeUDT
&Symbol
) override
;