2017-06-10 04:46:17 +08:00
|
|
|
//===- PrettyCompilandDumper.h - llvm-pdbutil compiland dumper -*- C++ --*-===//
|
2015-02-23 06:03:38 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-02-23 06:03:38 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2017-01-11 08:35:43 +08:00
|
|
|
#ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYCOMPILANDDUMPER_H
|
|
|
|
#define LLVM_TOOLS_LLVMPDBDUMP_PRETTYCOMPILANDDUMPER_H
|
2015-02-23 06:03:38 +08:00
|
|
|
|
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2016-05-05 04:32:13 +08:00
|
|
|
namespace pdb {
|
2015-02-23 06:03:38 +08:00
|
|
|
|
2015-02-27 17:15:59 +08:00
|
|
|
class LinePrinter;
|
|
|
|
|
2016-03-09 05:42:24 +08:00
|
|
|
typedef int CompilandDumpFlags;
|
2015-02-23 06:03:38 +08:00
|
|
|
class CompilandDumper : public PDBSymDumper {
|
|
|
|
public:
|
2016-03-09 05:42:24 +08:00
|
|
|
enum Flags { None = 0x0, Children = 0x1, Symbols = 0x2, Lines = 0x4 };
|
|
|
|
|
2015-02-27 17:15:59 +08:00
|
|
|
CompilandDumper(LinePrinter &P);
|
2015-02-23 06:03:38 +08:00
|
|
|
|
2016-03-09 05:42:24 +08:00
|
|
|
void start(const PDBSymbolCompiland &Symbol, CompilandDumpFlags flags);
|
2015-03-01 14:51:29 +08: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;
|
2018-10-12 05:37:18 +08:00
|
|
|
void dump(const PDBSymbolUsingNamespace &Symbol) override;
|
2015-02-27 17:15:59 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
LinePrinter &Printer;
|
2015-02-23 06:03:38 +08:00
|
|
|
};
|
|
|
|
}
|
2016-05-05 04:32:13 +08:00
|
|
|
}
|
2015-02-23 06:03:38 +08:00
|
|
|
|
|
|
|
#endif
|