LLVM  14.0.0git
NativeEnumLineNumbers.h
Go to the documentation of this file.
1 //==- NativeEnumLineNumbers.h - Native Line Number Enumerator ------------*-==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMLINENUMBERS_H
10 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMLINENUMBERS_H
11 
18 
19 namespace llvm {
20 namespace pdb {
21 class IPDBLineNumber;
22 
23 class NativeEnumLineNumbers : public IPDBEnumChildren<IPDBLineNumber> {
24 public:
25  explicit NativeEnumLineNumbers(std::vector<NativeLineNumber> LineNums);
26 
27  uint32_t getChildCount() const override;
28  ChildTypePtr getChildAtIndex(uint32_t Index) const override;
29  ChildTypePtr getNext() override;
30  void reset() override;
31 
32 private:
33  std::vector<NativeLineNumber> Lines;
34  uint32_t Index;
35 };
36 } // namespace pdb
37 } // namespace llvm
38 
39 #endif
llvm::pdb::IPDBEnumChildren< IPDBLineNumber >::ChildTypePtr
std::unique_ptr< IPDBLineNumber > ChildTypePtr
Definition: IPDBEnumChildren.h:21
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::pdb::NativeEnumLineNumbers::getChildCount
uint32_t getChildCount() const override
Definition: NativeEnumLineNumbers.cpp:27
IPDBLineNumber.h
DebugSubsectionRecord.h
llvm::pdb::NativeEnumLineNumbers::getNext
ChildTypePtr getNext() override
Definition: NativeEnumLineNumbers.cpp:38
DebugLinesSubsection.h
llvm::pdb::NativeEnumLineNumbers
Definition: NativeEnumLineNumbers.h:23
IPDBEnumChildren.h
llvm::pdb::NativeEnumLineNumbers::getChildAtIndex
ChildTypePtr getChildAtIndex(uint32_t Index) const override
Definition: NativeEnumLineNumbers.cpp:32
uint32_t
StringsAndChecksums.h
llvm::pdb::NativeEnumLineNumbers::NativeEnumLineNumbers
NativeEnumLineNumbers(std::vector< NativeLineNumber > LineNums)
Definition: NativeEnumLineNumbers.cpp:23
llvm::pdb::IPDBEnumChildren
Definition: IPDBEnumChildren.h:19
NativeLineNumber.h
llvm::pdb::NativeEnumLineNumbers::reset
void reset() override
Definition: NativeEnumLineNumbers.cpp:42