blob: 287a79c02c2679851728b99f38f0496eb6647e04 [file] [log] [blame]
Zachary Turner9a818ad2015-02-22 22:03:38 +00001//===- 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
15namespace llvm {
16
17class FunctionDumper : public PDBSymDumper {
18public:
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, raw_ostream &OS);
26
27 void dump(const PDBSymbolTypeArray &Symbol, raw_ostream &OS,
28 int Indent) override;
29 void dump(const PDBSymbolTypeBuiltin &Symbol, raw_ostream &OS,
30 int Indent) override;
31 void dump(const PDBSymbolTypeEnum &Symbol, raw_ostream &OS,
32 int Indent) override;
33 void dump(const PDBSymbolTypeFunctionArg &Symbol, raw_ostream &OS,
34 int Indent) override;
35 void dump(const PDBSymbolTypePointer &Symbol, raw_ostream &OS,
36 int Indent) override;
37 void dump(const PDBSymbolTypeTypedef &Symbol, raw_ostream &OS,
38 int Indent) override;
39 void dump(const PDBSymbolTypeUDT &Symbol, raw_ostream &OS,
40 int Indent) override;
41};
42}
43
44#endif