PrettyCompilandDumper.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //===- PrettyCompilandDumper.h - llvm-pdbutil compiland dumper -*- C++ --*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYCOMPILANDDUMPER_H
  9. #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYCOMPILANDDUMPER_H
  10. #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
  11. namespace llvm {
  12. namespace pdb {
  13. class LinePrinter;
  14. typedef int CompilandDumpFlags;
  15. class CompilandDumper : public PDBSymDumper {
  16. public:
  17. enum Flags { None = 0x0, Children = 0x1, Symbols = 0x2, Lines = 0x4 };
  18. CompilandDumper(LinePrinter &P);
  19. void start(const PDBSymbolCompiland &Symbol, CompilandDumpFlags flags);
  20. void dump(const PDBSymbolCompilandDetails &Symbol) override;
  21. void dump(const PDBSymbolCompilandEnv &Symbol) override;
  22. void dump(const PDBSymbolData &Symbol) override;
  23. void dump(const PDBSymbolFunc &Symbol) override;
  24. void dump(const PDBSymbolLabel &Symbol) override;
  25. void dump(const PDBSymbolThunk &Symbol) override;
  26. void dump(const PDBSymbolTypeTypedef &Symbol) override;
  27. void dump(const PDBSymbolUnknown &Symbol) override;
  28. void dump(const PDBSymbolUsingNamespace &Symbol) override;
  29. private:
  30. LinePrinter &Printer;
  31. };
  32. }
  33. }
  34. #endif