IPDBSectionContrib.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //==- IPDBSectionContrib.h - Interfaces for PDB SectionContribs --*- 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_IPDBSECTIONCONTRIB_H
  14. #define LLVM_DEBUGINFO_PDB_IPDBSECTIONCONTRIB_H
  15. #include "PDBTypes.h"
  16. namespace llvm {
  17. namespace pdb {
  18. /// IPDBSectionContrib defines an interface used to represent section
  19. /// contributions whose information are stored in the PDB.
  20. class IPDBSectionContrib {
  21. public:
  22. virtual ~IPDBSectionContrib();
  23. virtual std::unique_ptr<PDBSymbolCompiland> getCompiland() const = 0;
  24. virtual uint32_t getAddressSection() const = 0;
  25. virtual uint32_t getAddressOffset() const = 0;
  26. virtual uint32_t getRelativeVirtualAddress() const = 0;
  27. virtual uint64_t getVirtualAddress() const = 0;
  28. virtual uint32_t getLength() const = 0;
  29. virtual bool isNotPaged() const = 0;
  30. virtual bool hasCode() const = 0;
  31. virtual bool hasCode16Bit() const = 0;
  32. virtual bool hasInitializedData() const = 0;
  33. virtual bool hasUninitializedData() const = 0;
  34. virtual bool isRemoved() const = 0;
  35. virtual bool hasComdat() const = 0;
  36. virtual bool isDiscardable() const = 0;
  37. virtual bool isNotCached() const = 0;
  38. virtual bool isShared() const = 0;
  39. virtual bool isExecutable() const = 0;
  40. virtual bool isReadable() const = 0;
  41. virtual bool isWritable() const = 0;
  42. virtual uint32_t getDataCrc32() const = 0;
  43. virtual uint32_t getRelocationsCrc32() const = 0;
  44. virtual uint32_t getCompilandId() const = 0;
  45. };
  46. }
  47. }
  48. #endif // LLVM_DEBUGINFO_PDB_IPDBSECTIONCONTRIB_H
  49. #ifdef __GNUC__
  50. #pragma GCC diagnostic pop
  51. #endif