2017-01-11 08:35:43 +08:00
|
|
|
//===- PrettyVariableDumper.h - PDBSymDumper variable dumper ----*- C++ -*-===//
|
2015-02-23 13:58:34 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2017-01-11 08:35:43 +08:00
|
|
|
#ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYVARIABLEDUMPER_H
|
|
|
|
#define LLVM_TOOLS_LLVMPDBDUMP_PRETTYVARIABLEDUMPER_H
|
2015-02-23 13:58:34 +08:00
|
|
|
|
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2016-04-18 17:17:29 +08:00
|
|
|
class StringRef;
|
2016-05-05 04:32:13 +08:00
|
|
|
|
|
|
|
namespace pdb {
|
|
|
|
|
2015-02-27 17:15:59 +08:00
|
|
|
class LinePrinter;
|
|
|
|
|
2015-02-23 13:58:34 +08:00
|
|
|
class VariableDumper : public PDBSymDumper {
|
|
|
|
public:
|
2015-02-27 17:15:59 +08:00
|
|
|
VariableDumper(LinePrinter &P);
|
2015-02-23 13:58:34 +08:00
|
|
|
|
2017-04-14 05:11:00 +08:00
|
|
|
void start(const PDBSymbolData &Var, uint32_t Offset = 0);
|
|
|
|
void start(const PDBSymbolTypeVTable &Var, uint32_t Offset = 0);
|
2015-03-01 14:51:29 +08:00
|
|
|
|
2017-04-11 00:43:09 +08:00
|
|
|
void dump(const PDBSymbolTypeArray &Symbol) override;
|
2015-03-01 14:51:29 +08:00
|
|
|
void dump(const PDBSymbolTypeBuiltin &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypeEnum &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypeFunctionSig &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypePointer &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypeTypedef &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypeUDT &Symbol) override;
|
2015-02-23 13:58:34 +08:00
|
|
|
|
2017-04-11 00:43:09 +08:00
|
|
|
void dumpRight(const PDBSymbolTypeArray &Symbol) override;
|
|
|
|
void dumpRight(const PDBSymbolTypeFunctionSig &Symbol) override;
|
|
|
|
void dumpRight(const PDBSymbolTypePointer &Symbol) override;
|
|
|
|
|
2015-02-23 13:58:34 +08:00
|
|
|
private:
|
2015-03-01 14:51:29 +08:00
|
|
|
void dumpSymbolTypeAndName(const PDBSymbol &Type, StringRef Name);
|
2015-02-27 17:15:59 +08:00
|
|
|
|
|
|
|
LinePrinter &Printer;
|
2015-02-23 13:58:34 +08:00
|
|
|
};
|
|
|
|
}
|
2016-05-05 04:32:13 +08:00
|
|
|
}
|
2015-02-23 13:58:34 +08:00
|
|
|
#endif
|