1 //===- VariableDumper.h - PDBSymDumper implementation for types -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TOOLS_LLVMPDBDUMP_VARIABLEDUMPER_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_VARIABLEDUMPER_H
13 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
14 #include "llvm/ADT/StringRef.h"
20 class VariableDumper : public PDBSymDumper {
22 VariableDumper(LinePrinter &P);
24 void start(const PDBSymbolData &Var);
26 void dump(const PDBSymbolTypeBuiltin &Symbol) override;
27 void dump(const PDBSymbolTypeEnum &Symbol) override;
28 void dump(const PDBSymbolTypeFunctionSig &Symbol) override;
29 void dump(const PDBSymbolTypePointer &Symbol) override;
30 void dump(const PDBSymbolTypeTypedef &Symbol) override;
31 void dump(const PDBSymbolTypeUDT &Symbol) override;
34 void dumpSymbolTypeAndName(const PDBSymbol &Type, StringRef Name);
35 bool tryDumpFunctionPointer(const PDBSymbol &Type, StringRef Name);