[llvm-pdbdump] Add an option to dump full class definitions.
[oota-llvm.git] / tools / llvm-pdbdump / FunctionDumper.h
1 //===- FunctionDumper.h --------------------------------------- *- 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_TOOLS_LLVMPDBDUMP_FUNCTIONDUMPER_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_FUNCTIONDUMPER_H
12
13 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
14
15 namespace llvm {
16
17 class FunctionDumper : public PDBSymDumper {
18 public:
19   FunctionDumper();
20
21   enum class PointerType { None, Pointer, Reference };
22
23   void start(const PDBSymbolTypeFunctionSig &Symbol, PointerType Pointer,
24              raw_ostream &OS);
25   void start(const PDBSymbolFunc &Symbol, PointerType Pointer, raw_ostream &OS,
26              int Indent);
27
28   void dump(const PDBSymbolTypeArray &Symbol, raw_ostream &OS,
29             int Indent) override;
30   void dump(const PDBSymbolTypeBuiltin &Symbol, raw_ostream &OS,
31             int Indent) override;
32   void dump(const PDBSymbolTypeEnum &Symbol, raw_ostream &OS,
33             int Indent) override;
34   void dump(const PDBSymbolTypeFunctionArg &Symbol, raw_ostream &OS,
35             int Indent) override;
36   void dump(const PDBSymbolTypePointer &Symbol, raw_ostream &OS,
37             int Indent) override;
38   void dump(const PDBSymbolTypeTypedef &Symbol, raw_ostream &OS,
39             int Indent) override;
40   void dump(const PDBSymbolTypeUDT &Symbol, raw_ostream &OS,
41             int Indent) override;
42 };
43 }
44
45 #endif