DIAFrameData.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- DIAFrameData.h - DIA Impl. of IPDBFrameData ---------------- 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_DIAFRAMEDATA_H
  14. #define LLVM_DEBUGINFO_PDB_DIA_DIAFRAMEDATA_H
  15. #include "DIASupport.h"
  16. #include "llvm/DebugInfo/PDB/IPDBFrameData.h"
  17. namespace llvm {
  18. namespace pdb {
  19. class DIASession;
  20. class DIAFrameData : public IPDBFrameData {
  21. public:
  22. explicit DIAFrameData(CComPtr<IDiaFrameData> DiaFrameData);
  23. uint32_t getAddressOffset() const override;
  24. uint32_t getAddressSection() const override;
  25. uint32_t getLengthBlock() const override;
  26. std::string getProgram() const override;
  27. uint32_t getRelativeVirtualAddress() const override;
  28. uint64_t getVirtualAddress() const override;
  29. private:
  30. CComPtr<IDiaFrameData> FrameData;
  31. };
  32. } // namespace pdb
  33. } // namespace llvm
  34. #endif
  35. #ifdef __GNUC__
  36. #pragma GCC diagnostic pop
  37. #endif