2015-02-22 23:03:38 +01:00
|
|
|
//===- CompilandDumper.h - llvm-pdbdump compiland symbol dumper *- C++ --*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_TOOLS_LLVMPDBDUMP_COMPILANDDUMPER_H
|
|
|
|
#define LLVM_TOOLS_LLVMPDBDUMP_COMPILANDDUMPER_H
|
|
|
|
|
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2016-05-04 22:32:13 +02:00
|
|
|
namespace pdb {
|
2015-02-22 23:03:38 +01:00
|
|
|
|
2015-02-27 10:15:59 +01:00
|
|
|
class LinePrinter;
|
|
|
|
|
2016-03-08 22:42:24 +01:00
|
|
|
typedef int CompilandDumpFlags;
|
2015-02-22 23:03:38 +01:00
|
|
|
class CompilandDumper : public PDBSymDumper {
|
|
|
|
public:
|
2016-03-08 22:42:24 +01:00
|
|
|
enum Flags { None = 0x0, Children = 0x1, Symbols = 0x2, Lines = 0x4 };
|
|
|
|
|
2015-02-27 10:15:59 +01:00
|
|
|
CompilandDumper(LinePrinter &P);
|
2015-02-22 23:03:38 +01:00
|
|
|
|
2016-03-08 22:42:24 +01:00
|
|
|
void start(const PDBSymbolCompiland &Symbol, CompilandDumpFlags flags);
|
2015-03-01 07:51:29 +01:00
|
|
|
|
|
|
|
void dump(const PDBSymbolCompilandDetails &Symbol) override;
|
|
|
|
void dump(const PDBSymbolCompilandEnv &Symbol) override;
|
|
|
|
void dump(const PDBSymbolData &Symbol) override;
|
|
|
|
void dump(const PDBSymbolFunc &Symbol) override;
|
|
|
|
void dump(const PDBSymbolLabel &Symbol) override;
|
|
|
|
void dump(const PDBSymbolThunk &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypeTypedef &Symbol) override;
|
|
|
|
void dump(const PDBSymbolUnknown &Symbol) override;
|
2015-02-27 10:15:59 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
LinePrinter &Printer;
|
2015-02-22 23:03:38 +01:00
|
|
|
};
|
|
|
|
}
|
2016-05-04 22:32:13 +02:00
|
|
|
}
|
2015-02-22 23:03:38 +01:00
|
|
|
|
|
|
|
#endif
|