LLVM  15.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 
15 namespace llvm {
16 namespace pdb {
17 
18 class NativeSession;
19 
21 public:
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 
41 private:
42  const NativeSession &Session;
43  const codeview::LineInfo Line;
44  uint32_t ColumnNumber;
45  uint32_t Section;
46  uint32_t Offset;
47  uint32_t Length;
48  uint32_t SrcFileId;
49  uint32_t CompilandId;
50 };
51 } // namespace pdb
52 } // namespace llvm
53 #endif
llvm::pdb::NativeLineNumber::getLineNumberEnd
uint32_t getLineNumberEnd() const override
Definition: NativeLineNumber.cpp:26
llvm::pdb::NativeLineNumber::getLineNumber
uint32_t getLineNumber() const override
Definition: NativeLineNumber.cpp:24
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::pdb::NativeLineNumber::getRelativeVirtualAddress
uint32_t getRelativeVirtualAddress() const override
Definition: NativeLineNumber.cpp:38
llvm::pdb::NativeLineNumber::getVirtualAddress
uint64_t getVirtualAddress() const override
Definition: NativeLineNumber.cpp:42
llvm::pdb::NativeLineNumber
Definition: NativeLineNumber.h:20
llvm::pdb::NativeLineNumber::getCompilandId
uint32_t getCompilandId() const override
Definition: NativeLineNumber.cpp:50
IPDBLineNumber.h
llvm::pdb::NativeLineNumber::getLength
uint32_t getLength() const override
Definition: NativeLineNumber.cpp:46
llvm::pdb::NativeLineNumber::isStatement
bool isStatement() const override
Definition: NativeLineNumber.cpp:52
llvm::pdb::NativeLineNumber::getSourceFileId
uint32_t getSourceFileId() const override
Definition: NativeLineNumber.cpp:48
Line.h
uint64_t
llvm::pdb::NativeLineNumber::getAddressOffset
uint32_t getAddressOffset() const override
Definition: NativeLineNumber.cpp:36
llvm::pdb::NativeLineNumber::getColumnNumberEnd
uint32_t getColumnNumberEnd() const override
Definition: NativeLineNumber.cpp:32
llvm::pdb::IPDBLineNumber
Definition: IPDBLineNumber.h:16
uint32_t
llvm::pdb::NativeLineNumber::getAddressSection
uint32_t getAddressSection() const override
Definition: NativeLineNumber.cpp:34
llvm::codeview::LineInfo
Definition: Line.h:20
llvm::pdb::NativeLineNumber::NativeLineNumber
NativeLineNumber(const NativeSession &Session, const codeview::LineInfo Line, uint32_t ColumnNumber, uint32_t Length, uint32_t Section, uint32_t Offset, uint32_t SrcFileId, uint32_t CompilandId)
Definition: NativeLineNumber.cpp:15
llvm::pdb::NativeSession
Definition: NativeSession.h:32
llvm::pdb::NativeLineNumber::getColumnNumber
uint32_t getColumnNumber() const override
Definition: NativeLineNumber.cpp:30