LLVM: lib/DebugInfo/PDB/Native/NativeEnumLineNumbers.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

10

12

13#include

14

15using namespace llvm;

18

20 std::vector LineNums)

21 : Lines(std::move(LineNums)), Index(0) {}

22

24 return static_cast<uint32_t>(Lines.size());

25}

26

27std::unique_ptr

30 return nullptr;

31 return std::make_unique(Lines[N]);

32}

33

37

NativeEnumLineNumbers(std::vector< NativeLineNumber > LineNums)

Definition NativeEnumLineNumbers.cpp:19

void reset() override

Definition NativeEnumLineNumbers.cpp:38

uint32_t getChildCount() const override

Definition NativeEnumLineNumbers.cpp:23

ChildTypePtr getNext() override

Definition NativeEnumLineNumbers.cpp:34

ChildTypePtr getChildAtIndex(uint32_t Index) const override

Definition NativeEnumLineNumbers.cpp:28

This is an optimization pass for GlobalISel generic memory operations.

OutputIt move(R &&Range, OutputIt Out)

Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.

Implement std::hash so that hash_code can be used in STL containers.