PDBSymbolCustom.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //===- PDBSymbolCustom.h - compiler-specific types --------------*- 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_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H
  10. #define LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H
  11. #include "PDBSymbol.h"
  12. #include "PDBTypes.h"
  13. #include "llvm/ADT/SmallVector.h"
  14. namespace llvm {
  15. class raw_ostream;
  16. /// PDBSymbolCustom represents symbols that are compiler-specific and do not
  17. /// fit anywhere else in the lexical hierarchy.
  18. /// https://msdn.microsoft.com/en-us/library/d88sf09h.aspx
  19. class PDBSymbolCustom : public PDBSymbol {
  20. public:
  21. PDBSymbolCustom(const IPDBSession &PDBSession,
  22. std::unique_ptr<IPDBRawSymbol> CustomSymbol);
  23. DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Custom)
  24. void dump(PDBSymDumper &Dumper) const override;
  25. void getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes);
  26. FORWARD_SYMBOL_METHOD(getSymIndexId)
  27. };
  28. } // namespace llvm
  29. #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H