DIASectionContrib.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- DIASectionContrib.h - DIA Impl. of IPDBSectionContrib ------ 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_DIASECTIONCONTRIB_H
  14. #define LLVM_DEBUGINFO_PDB_DIA_DIASECTIONCONTRIB_H
  15. #include "DIASupport.h"
  16. #include "llvm/DebugInfo/PDB/IPDBSectionContrib.h"
  17. namespace llvm {
  18. namespace pdb {
  19. class DIASession;
  20. class DIASectionContrib : public IPDBSectionContrib {
  21. public:
  22. explicit DIASectionContrib(const DIASession &PDBSession,
  23. CComPtr<IDiaSectionContrib> DiaSection);
  24. std::unique_ptr<PDBSymbolCompiland> getCompiland() const override;
  25. uint32_t getAddressSection() const override;
  26. uint32_t getAddressOffset() const override;
  27. uint32_t getRelativeVirtualAddress() const override;
  28. uint64_t getVirtualAddress() const override;
  29. uint32_t getLength() const override;
  30. bool isNotPaged() const override;
  31. bool hasCode() const override;
  32. bool hasCode16Bit() const override;
  33. bool hasInitializedData() const override;
  34. bool hasUninitializedData() const override;
  35. bool isRemoved() const override;
  36. bool hasComdat() const override;
  37. bool isDiscardable() const override;
  38. bool isNotCached() const override;
  39. bool isShared() const override;
  40. bool isExecutable() const override;
  41. bool isReadable() const override;
  42. bool isWritable() const override;
  43. uint32_t getDataCrc32() const override;
  44. uint32_t getRelocationsCrc32() const override;
  45. uint32_t getCompilandId() const override;
  46. private:
  47. const DIASession &Session;
  48. CComPtr<IDiaSectionContrib> Section;
  49. };
  50. } // namespace pdb
  51. } // namespace llvm
  52. #endif // LLVM_DEBUGINFO_PDB_DIA_DIASECTIONCONTRIB_H
  53. #ifdef __GNUC__
  54. #pragma GCC diagnostic pop
  55. #endif