IPDBFrameData.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- IPDBFrameData.h - base interface for frame data ----------*- 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_IPDBFRAMEDATA_H
  14. #define LLVM_DEBUGINFO_PDB_IPDBFRAMEDATA_H
  15. #include <cstdint>
  16. #include <string>
  17. namespace llvm {
  18. namespace pdb {
  19. /// IPDBFrameData defines an interface used to represent a frame data of some
  20. /// code block.
  21. class IPDBFrameData {
  22. public:
  23. virtual ~IPDBFrameData();
  24. virtual uint32_t getAddressOffset() const = 0;
  25. virtual uint32_t getAddressSection() const = 0;
  26. virtual uint32_t getLengthBlock() const = 0;
  27. virtual std::string getProgram() const = 0;
  28. virtual uint32_t getRelativeVirtualAddress() const = 0;
  29. virtual uint64_t getVirtualAddress() const = 0;
  30. };
  31. } // namespace pdb
  32. } // namespace llvm
  33. #endif
  34. #ifdef __GNUC__
  35. #pragma GCC diagnostic pop
  36. #endif