blob: 204d34acf1bfc0b0328a2676b77e59a3e9f84f06 [file] [log] [blame]
Zachary Turner9a818ad2015-02-22 22:03:38 +00001//===- CompilandDumper.h - llvm-pdbdump compiland symbol dumper *- 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_COMPILANDDUMPER_H
11#define LLVM_TOOLS_LLVMPDBDUMP_COMPILANDDUMPER_H
12
13#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
14
15namespace llvm {
16
Zachary Turner2d11c202015-02-27 09:15:59 +000017class LinePrinter;
18
Zachary Turnera99000d2016-03-08 21:42:24 +000019typedef int CompilandDumpFlags;
Zachary Turner9a818ad2015-02-22 22:03:38 +000020class CompilandDumper : public PDBSymDumper {
21public:
Zachary Turnera99000d2016-03-08 21:42:24 +000022 enum Flags { None = 0x0, Children = 0x1, Symbols = 0x2, Lines = 0x4 };
23
Zachary Turner2d11c202015-02-27 09:15:59 +000024 CompilandDumper(LinePrinter &P);
Zachary Turner9a818ad2015-02-22 22:03:38 +000025
Zachary Turnera99000d2016-03-08 21:42:24 +000026 void start(const PDBSymbolCompiland &Symbol, CompilandDumpFlags flags);
Zachary Turner9a818ad2015-02-22 22:03:38 +000027
Zachary Turnerb52d08d2015-03-01 06:51:29 +000028 void dump(const PDBSymbolCompilandDetails &Symbol) override;
29 void dump(const PDBSymbolCompilandEnv &Symbol) override;
30 void dump(const PDBSymbolData &Symbol) override;
31 void dump(const PDBSymbolFunc &Symbol) override;
32 void dump(const PDBSymbolLabel &Symbol) override;
33 void dump(const PDBSymbolThunk &Symbol) override;
34 void dump(const PDBSymbolTypeTypedef &Symbol) override;
35 void dump(const PDBSymbolUnknown &Symbol) override;
Zachary Turner2d11c202015-02-27 09:15:59 +000036
37private:
38 LinePrinter &Printer;
Zachary Turner9a818ad2015-02-22 22:03:38 +000039};
40}
41
42#endif