]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/llvm-pdbutil/PrettyFunctionDumper.h
Fix a memory leak in if_delgroups() introduced in r334118.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / llvm-pdbutil / PrettyFunctionDumper.h
1 //===- PrettyFunctionDumper.h --------------------------------- *- 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_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H
10 #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H
11
12 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
13
14 namespace llvm {
15 namespace pdb {
16 class LinePrinter;
17
18 class FunctionDumper : public PDBSymDumper {
19 public:
20   FunctionDumper(LinePrinter &P);
21
22   enum class PointerType { None, Pointer, Reference };
23
24   void start(const PDBSymbolTypeFunctionSig &Symbol, const char *Name,
25              PointerType Pointer);
26   void start(const PDBSymbolFunc &Symbol, PointerType Pointer);
27
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;
35
36 private:
37   LinePrinter &Printer;
38 };
39 }
40 }
41
42 #endif