DIATable.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- DIATable.h - DIA implementation of IPDBTable -------------*- 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_DIA_DIATABLE_H
  14. #define LLVM_DEBUGINFO_PDB_DIA_DIATABLE_H
  15. #include "DIASupport.h"
  16. #include "llvm/DebugInfo/PDB/IPDBTable.h"
  17. namespace llvm {
  18. namespace pdb {
  19. class DIATable : public IPDBTable {
  20. public:
  21. explicit DIATable(CComPtr<IDiaTable> DiaTable);
  22. uint32_t getItemCount() const override;
  23. std::string getName() const override;
  24. PDB_TableType getTableType() const override;
  25. private:
  26. CComPtr<IDiaTable> Table;
  27. };
  28. }
  29. }
  30. #endif // LLVM_DEBUGINFO_PDB_DIA_DIATABLE_H
  31. #ifdef __GNUC__
  32. #pragma GCC diagnostic pop
  33. #endif