NativeEnumLineNumbers.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. //==- NativeEnumLineNumbers.h - Native Line Number Enumerator ------------*-==//
  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_NATIVE_NATIVEENUMLINENUMBERS_H
  14. #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMLINENUMBERS_H
  15. #include "llvm/DebugInfo/CodeView/DebugLinesSubsection.h"
  16. #include "llvm/DebugInfo/CodeView/DebugSubsectionRecord.h"
  17. #include "llvm/DebugInfo/CodeView/StringsAndChecksums.h"
  18. #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
  19. #include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
  20. #include "llvm/DebugInfo/PDB/Native/NativeLineNumber.h"
  21. namespace llvm {
  22. namespace pdb {
  23. class IPDBLineNumber;
  24. class NativeEnumLineNumbers : public IPDBEnumChildren<IPDBLineNumber> {
  25. public:
  26. explicit NativeEnumLineNumbers(std::vector<NativeLineNumber> LineNums);
  27. uint32_t getChildCount() const override;
  28. ChildTypePtr getChildAtIndex(uint32_t Index) const override;
  29. ChildTypePtr getNext() override;
  30. void reset() override;
  31. private:
  32. std::vector<NativeLineNumber> Lines;
  33. uint32_t Index;
  34. };
  35. } // namespace pdb
  36. } // namespace llvm
  37. #endif
  38. #ifdef __GNUC__
  39. #pragma GCC diagnostic pop
  40. #endif