PDBSymDumper.h 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- PDBSymDumper.h - base interface for PDB symbol dumper *- C++ -----*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_DEBUGINFO_PDB_PDBSYMDUMPER_H
  14. #define LLVM_DEBUGINFO_PDB_PDBSYMDUMPER_H
  15. #include "PDBTypes.h"
  16. namespace llvm {
  17. class raw_ostream;
  18. namespace pdb {
  19. class PDBSymDumper {
  20. public:
  21. PDBSymDumper(bool ShouldRequireImpl);
  22. virtual ~PDBSymDumper();
  23. virtual void dump(const PDBSymbolAnnotation &Symbol);
  24. virtual void dump(const PDBSymbolBlock &Symbol);
  25. virtual void dump(const PDBSymbolCompiland &Symbol);
  26. virtual void dump(const PDBSymbolCompilandDetails &Symbol);
  27. virtual void dump(const PDBSymbolCompilandEnv &Symbol);
  28. virtual void dump(const PDBSymbolCustom &Symbol);
  29. virtual void dump(const PDBSymbolData &Symbol);
  30. virtual void dump(const PDBSymbolExe &Symbol);
  31. virtual void dump(const PDBSymbolFunc &Symbol);
  32. virtual void dump(const PDBSymbolFuncDebugEnd &Symbol);
  33. virtual void dump(const PDBSymbolFuncDebugStart &Symbol);
  34. virtual void dump(const PDBSymbolLabel &Symbol);
  35. virtual void dump(const PDBSymbolPublicSymbol &Symbol);
  36. virtual void dump(const PDBSymbolThunk &Symbol);
  37. virtual void dump(const PDBSymbolTypeArray &Symbol);
  38. virtual void dump(const PDBSymbolTypeBaseClass &Symbol);
  39. virtual void dump(const PDBSymbolTypeBuiltin &Symbol);
  40. virtual void dump(const PDBSymbolTypeCustom &Symbol);
  41. virtual void dump(const PDBSymbolTypeDimension &Symbol);
  42. virtual void dump(const PDBSymbolTypeEnum &Symbol);
  43. virtual void dump(const PDBSymbolTypeFriend &Symbol);
  44. virtual void dump(const PDBSymbolTypeFunctionArg &Symbol);
  45. virtual void dump(const PDBSymbolTypeFunctionSig &Symbol);
  46. virtual void dump(const PDBSymbolTypeManaged &Symbol);
  47. virtual void dump(const PDBSymbolTypePointer &Symbol);
  48. virtual void dump(const PDBSymbolTypeTypedef &Symbol);
  49. virtual void dump(const PDBSymbolTypeUDT &Symbol);
  50. virtual void dump(const PDBSymbolTypeVTable &Symbol);
  51. virtual void dump(const PDBSymbolTypeVTableShape &Symbol);
  52. virtual void dump(const PDBSymbolUnknown &Symbol);
  53. virtual void dump(const PDBSymbolUsingNamespace &Symbol);
  54. virtual void dumpRight(const PDBSymbolTypeArray &Symbol) {}
  55. virtual void dumpRight(const PDBSymbolTypeBaseClass &Symbol) {}
  56. virtual void dumpRight(const PDBSymbolTypeBuiltin &Symbol) {}
  57. virtual void dumpRight(const PDBSymbolTypeCustom &Symbol) {}
  58. virtual void dumpRight(const PDBSymbolTypeDimension &Symbol) {}
  59. virtual void dumpRight(const PDBSymbolTypeEnum &Symbol) {}
  60. virtual void dumpRight(const PDBSymbolTypeFriend &Symbol) {}
  61. virtual void dumpRight(const PDBSymbolTypeFunctionArg &Symbol) {}
  62. virtual void dumpRight(const PDBSymbolTypeFunctionSig &Symbol) {}
  63. virtual void dumpRight(const PDBSymbolTypeManaged &Symbol) {}
  64. virtual void dumpRight(const PDBSymbolTypePointer &Symbol) {}
  65. virtual void dumpRight(const PDBSymbolTypeTypedef &Symbol) {}
  66. virtual void dumpRight(const PDBSymbolTypeUDT &Symbol) {}
  67. virtual void dumpRight(const PDBSymbolTypeVTable &Symbol) {}
  68. virtual void dumpRight(const PDBSymbolTypeVTableShape &Symbol) {}
  69. private:
  70. bool RequireImpl;
  71. };
  72. }
  73. }
  74. #endif
  75. #ifdef __GNUC__
  76. #pragma GCC diagnostic pop
  77. #endif