PrettyClassDefinitionDumper.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //===- PrettyClassDefinitionDumper.h ----------------------------*- 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_PRETTYCLASSDEFINITIONDUMPER_H
  9. #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYCLASSDEFINITIONDUMPER_H
  10. #include "llvm/ADT/BitVector.h"
  11. #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
  12. #include "llvm/DebugInfo/PDB/PDBSymbolData.h"
  13. #include "llvm/DebugInfo/PDB/PDBSymbolFunc.h"
  14. #include <list>
  15. #include <memory>
  16. #include <unordered_map>
  17. namespace llvm {
  18. class BitVector;
  19. namespace pdb {
  20. class ClassLayout;
  21. class LinePrinter;
  22. class ClassDefinitionDumper : public PDBSymDumper {
  23. public:
  24. ClassDefinitionDumper(LinePrinter &P);
  25. void start(const PDBSymbolTypeUDT &Class);
  26. void start(const ClassLayout &Class);
  27. private:
  28. void prettyPrintClassIntro(const ClassLayout &Class);
  29. void prettyPrintClassOutro(const ClassLayout &Class);
  30. LinePrinter &Printer;
  31. bool DumpedAnything = false;
  32. };
  33. }
  34. }
  35. #endif