LLVM 23.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
15#include <vector>
16
17namespace llvm {
18namespace pdb {
19
20class LLVM_ABI NativeEnumLineNumbers : public IPDBEnumChildren<IPDBLineNumber> {
21public:
22 explicit NativeEnumLineNumbers(std::vector<NativeLineNumber> LineNums);
23
26
27 uint32_t getChildCount() const override;
28 ChildTypePtr getChildAtIndex(uint32_t Index) const override;
29 ChildTypePtr getNext() override;
30 void reset() override;
31
32private:
33 std::vector<NativeLineNumber> Lines;
34 uint32_t Index;
35};
36} // namespace pdb
37} // namespace llvm
38
39#endif
#define LLVM_ABI
Definition Compiler.h:213
std::unique_ptr< IPDBLineNumber > ChildTypePtr
NativeEnumLineNumbers(std::vector< NativeLineNumber > LineNums)
uint32_t getChildCount() const override
NativeEnumLineNumbers(const NativeEnumLineNumbers &)=delete
ChildTypePtr getChildAtIndex(uint32_t Index) const override
NativeEnumLineNumbers & operator=(const NativeEnumLineNumbers &)=delete
This is an optimization pass for GlobalISel generic memory operations.