blob: e8832e3d6339cc64fef636cf6f697cf8d4855bae [file] [log] [blame]
Zachary Turner29c69102015-02-23 05:58:34 +00001//===- VariableDumper.h - PDBSymDumper implementation for types -*- 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_VARIABLEDUMPER_H
11#define LLVM_TOOLS_LLVMPDBDUMP_VARIABLEDUMPER_H
12
13#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
14#include "llvm/ADT/StringRef.h"
15
16namespace llvm {
17
18class VariableDumper : public PDBSymDumper {
19public:
20 VariableDumper();
21
22 void start(const PDBSymbolData &Var, raw_ostream &OS, int Indent);
23
24 void dump(const PDBSymbolTypeBuiltin &Symbol, raw_ostream &OS,
25 int Indent) override;
26 void dump(const PDBSymbolTypeEnum &Symbol, raw_ostream &OS,
27 int Indent) override;
28 void dump(const PDBSymbolTypeFunctionSig &Symbol, raw_ostream &OS,
29 int Indent) override;
30 void dump(const PDBSymbolTypePointer &Symbol, raw_ostream &OS,
31 int Indent) override;
32 void dump(const PDBSymbolTypeTypedef &Symbol, raw_ostream &OS,
33 int Indent) override;
34 void dump(const PDBSymbolTypeUDT &Symbol, raw_ostream &OS,
35 int Indent) override;
36
37private:
38 void dumpSymbolTypeAndName(const PDBSymbol &Type, StringRef Name,
39 raw_ostream &OS);
Zachary Turnerd270d222015-02-26 23:49:23 +000040 bool tryDumpFunctionPointer(const PDBSymbol &Type, StringRef Name,
41 raw_ostream &OS);
Zachary Turner29c69102015-02-23 05:58:34 +000042};
43}
44
45#endif