PrettyFunctionDumper.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //===- PrettyFunctionDumper.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_PRETTYFUNCTIONDUMPER_H
  9. #define LLVM_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H
  10. #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
  11. namespace llvm {
  12. namespace pdb {
  13. class LinePrinter;
  14. class FunctionDumper : public PDBSymDumper {
  15. public:
  16. FunctionDumper(LinePrinter &P);
  17. enum class PointerType { None, Pointer, Reference };
  18. void start(const PDBSymbolTypeFunctionSig &Symbol, const char *Name,
  19. PointerType Pointer);
  20. void start(const PDBSymbolFunc &Symbol, PointerType Pointer);
  21. void dump(const PDBSymbolTypeArray &Symbol) override;
  22. void dump(const PDBSymbolTypeBuiltin &Symbol) override;
  23. void dump(const PDBSymbolTypeEnum &Symbol) override;
  24. void dump(const PDBSymbolTypeFunctionArg &Symbol) override;
  25. void dump(const PDBSymbolTypePointer &Symbol) override;
  26. void dump(const PDBSymbolTypeTypedef &Symbol) override;
  27. void dump(const PDBSymbolTypeUDT &Symbol) override;
  28. private:
  29. LinePrinter &Printer;
  30. };
  31. }
  32. }
  33. #endif