DIALineNumber.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- DIALineNumber.h - DIA implementation of IPDBLineNumber ---*- 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_DIALINENUMBER_H
  14. #define LLVM_DEBUGINFO_PDB_DIA_DIALINENUMBER_H
  15. #include "DIASupport.h"
  16. #include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
  17. namespace llvm {
  18. namespace pdb {
  19. class DIALineNumber : public IPDBLineNumber {
  20. public:
  21. explicit DIALineNumber(CComPtr<IDiaLineNumber> DiaLineNumber);
  22. uint32_t getLineNumber() const override;
  23. uint32_t getLineNumberEnd() const override;
  24. uint32_t getColumnNumber() const override;
  25. uint32_t getColumnNumberEnd() const override;
  26. uint32_t getAddressSection() const override;
  27. uint32_t getAddressOffset() const override;
  28. uint32_t getRelativeVirtualAddress() const override;
  29. uint64_t getVirtualAddress() const override;
  30. uint32_t getLength() const override;
  31. uint32_t getSourceFileId() const override;
  32. uint32_t getCompilandId() const override;
  33. bool isStatement() const override;
  34. private:
  35. CComPtr<IDiaLineNumber> LineNumber;
  36. };
  37. }
  38. }
  39. #endif
  40. #ifdef __GNUC__
  41. #pragma GCC diagnostic pop
  42. #endif