LLVM 19.0.0git
NativeLineNumber.h
Go to the documentation of this file.
1//===- NativeLineNumber.h - Native line number implementation ---*- C++ -*-===//
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_NATIVELINENUMBER_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_NATIVELINENUMBER_H
11
14
15namespace llvm {
16namespace pdb {
17
18class NativeSession;
19
21public:
22 explicit NativeLineNumber(const NativeSession &Session,
23 const codeview::LineInfo Line,
24 uint32_t ColumnNumber, uint32_t Length,
25 uint32_t Section, uint32_t Offset,
26 uint32_t SrcFileId, uint32_t CompilandId);
27
28 uint32_t getLineNumber() const override;
29 uint32_t getLineNumberEnd() const override;
30 uint32_t getColumnNumber() const override;
31 uint32_t getColumnNumberEnd() const override;
32 uint32_t getAddressSection() const override;
33 uint32_t getAddressOffset() const override;
34 uint32_t getRelativeVirtualAddress() const override;
35 uint64_t getVirtualAddress() const override;
36 uint32_t getLength() const override;
37 uint32_t getSourceFileId() const override;
38 uint32_t getCompilandId() const override;
39 bool isStatement() const override;
40
41private:
42 const NativeSession &Session;
43 const codeview::LineInfo Line;
44 uint32_t ColumnNumber;
45 uint32_t Section;
46 uint32_t Offset;
48 uint32_t SrcFileId;
49 uint32_t CompilandId;
50};
51} // namespace pdb
52} // namespace llvm
53#endif
bool isStatement() const override
uint64_t getVirtualAddress() const override
uint32_t getSourceFileId() const override
uint32_t getColumnNumber() const override
uint32_t getLength() const override
uint32_t getRelativeVirtualAddress() const override
uint32_t getLineNumber() const override
uint32_t getLineNumberEnd() const override
uint32_t getCompilandId() const override
uint32_t getAddressOffset() const override
uint32_t getAddressSection() const override
uint32_t getColumnNumberEnd() const override
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Length
Definition: DWP.cpp:456