blob: 1a6f5430ec5abb0de1d552af45ab43bc52f2b921 [file] [log] [blame]
Zachary Turnereb6ab042017-01-11 00:35:43 +00001//===- PrettyFunctionDumper.h --------------------------------- *- C++ --*-===//
Zachary Turner395adf92015-02-22 22:03:38 +00002//
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
Zachary Turnereb6ab042017-01-11 00:35:43 +000010#ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H
11#define LLVM_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H
Zachary Turner395adf92015-02-22 22:03:38 +000012
13#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
14
15namespace llvm {
Zachary Turnerc95df942016-05-04 20:32:13 +000016namespace pdb {
Zachary Turner756b8232015-02-27 09:15:59 +000017class LinePrinter;
18
Zachary Turner395adf92015-02-22 22:03:38 +000019class FunctionDumper : public PDBSymDumper {
20public:
Zachary Turner756b8232015-02-27 09:15:59 +000021 FunctionDumper(LinePrinter &P);
Zachary Turner395adf92015-02-22 22:03:38 +000022
23 enum class PointerType { None, Pointer, Reference };
24
Zachary Turner6aba3832015-02-26 23:49:23 +000025 void start(const PDBSymbolTypeFunctionSig &Symbol, const char *Name,
Zachary Turner53e4b562015-03-01 06:51:29 +000026 PointerType Pointer);
27 void start(const PDBSymbolFunc &Symbol, PointerType Pointer);
Zachary Turner395adf92015-02-22 22:03:38 +000028
Zachary Turner53e4b562015-03-01 06:51:29 +000029 void dump(const PDBSymbolTypeArray &Symbol) override;
30 void dump(const PDBSymbolTypeBuiltin &Symbol) override;
31 void dump(const PDBSymbolTypeEnum &Symbol) override;
32 void dump(const PDBSymbolTypeFunctionArg &Symbol) override;
33 void dump(const PDBSymbolTypePointer &Symbol) override;
34 void dump(const PDBSymbolTypeTypedef &Symbol) override;
35 void dump(const PDBSymbolTypeUDT &Symbol) override;
Zachary Turner756b8232015-02-27 09:15:59 +000036
37private:
38 LinePrinter &Printer;
Zachary Turner395adf92015-02-22 22:03:38 +000039};
40}
Zachary Turnerc95df942016-05-04 20:32:13 +000041}
Zachary Turner395adf92015-02-22 22:03:38 +000042
43#endif