FunctionDumper.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //===- FunctionDumper.h --------------------------------------- *- C++ --*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef LLVM_TOOLS_LLVMPDBDUMP_FUNCTIONDUMPER_H
  10. #define LLVM_TOOLS_LLVMPDBDUMP_FUNCTIONDUMPER_H
  11. #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
  12. namespace llvm {
  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. #endif