PDBSymbolCustom.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- PDBSymbolCustom.h - compiler-specific types --------------*- 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_PDBSYMBOLCUSTOM_H
  14. #define LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H
  15. #include "PDBSymbol.h"
  16. #include "PDBTypes.h"
  17. #include "llvm/ADT/SmallVector.h"
  18. namespace llvm {
  19. namespace pdb {
  20. /// PDBSymbolCustom represents symbols that are compiler-specific and do not
  21. /// fit anywhere else in the lexical hierarchy.
  22. /// https://msdn.microsoft.com/en-us/library/d88sf09h.aspx
  23. class PDBSymbolCustom : public PDBSymbol {
  24. DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Custom)
  25. public:
  26. void dump(PDBSymDumper &Dumper) const override;
  27. void getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes);
  28. };
  29. } // namespace llvm
  30. }
  31. #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H
  32. #ifdef __GNUC__
  33. #pragma GCC diagnostic pop
  34. #endif