NativeEnumLineNumbers.h 1.3 KB

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