Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:43:44

0001 //===- NativeLineNumber.h - Native line number implementation ---*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVELINENUMBER_H
0010 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVELINENUMBER_H
0011 
0012 #include "llvm/DebugInfo/CodeView/Line.h"
0013 #include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
0014 
0015 namespace llvm {
0016 namespace pdb {
0017 
0018 class NativeSession;
0019 
0020 class NativeLineNumber : public IPDBLineNumber {
0021 public:
0022   explicit NativeLineNumber(const NativeSession &Session,
0023                             const codeview::LineInfo Line,
0024                             uint32_t ColumnNumber, uint32_t Length,
0025                             uint32_t Section, uint32_t Offset,
0026                             uint32_t SrcFileId, uint32_t CompilandId);
0027 
0028   uint32_t getLineNumber() const override;
0029   uint32_t getLineNumberEnd() const override;
0030   uint32_t getColumnNumber() const override;
0031   uint32_t getColumnNumberEnd() const override;
0032   uint32_t getAddressSection() const override;
0033   uint32_t getAddressOffset() const override;
0034   uint32_t getRelativeVirtualAddress() const override;
0035   uint64_t getVirtualAddress() const override;
0036   uint32_t getLength() const override;
0037   uint32_t getSourceFileId() const override;
0038   uint32_t getCompilandId() const override;
0039   bool isStatement() const override;
0040 
0041 private:
0042   const NativeSession &Session;
0043   const codeview::LineInfo Line;
0044   uint32_t ColumnNumber;
0045   uint32_t Section;
0046   uint32_t Offset;
0047   uint32_t Length;
0048   uint32_t SrcFileId;
0049   uint32_t CompilandId;
0050 };
0051 } // namespace pdb
0052 } // namespace llvm
0053 #endif