LLVM  14.0.0git
DIALineNumber.cpp
Go to the documentation of this file.
1 //===- DIALineNumber.cpp - DIA implementation of IPDBLineNumber -*- 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 
10 
11 using namespace llvm;
12 using namespace llvm::pdb;
13 
14 DIALineNumber::DIALineNumber(CComPtr<IDiaLineNumber> DiaLineNumber)
15  : LineNumber(DiaLineNumber) {}
16 
18  DWORD Line = 0;
19  return (S_OK == LineNumber->get_lineNumber(&Line)) ? Line : 0;
20 }
21 
23  DWORD LineEnd = 0;
24  return (S_OK == LineNumber->get_lineNumberEnd(&LineEnd)) ? LineEnd : 0;
25 }
26 
28  DWORD Column = 0;
29  return (S_OK == LineNumber->get_columnNumber(&Column)) ? Column : 0;
30 }
31 
33  DWORD ColumnEnd = 0;
34  return (S_OK == LineNumber->get_columnNumberEnd(&ColumnEnd)) ? ColumnEnd : 0;
35 }
36 
38  DWORD Section = 0;
39  return (S_OK == LineNumber->get_addressSection(&Section)) ? Section : 0;
40 }
41 
43  DWORD Offset = 0;
44  return (S_OK == LineNumber->get_addressOffset(&Offset)) ? Offset : 0;
45 }
46 
48  DWORD RVA = 0;
49  return (S_OK == LineNumber->get_relativeVirtualAddress(&RVA)) ? RVA : 0;
50 }
51 
53  ULONGLONG Addr = 0;
54  return (S_OK == LineNumber->get_virtualAddress(&Addr)) ? Addr : 0;
55 }
56 
58  DWORD Length = 0;
59  return (S_OK == LineNumber->get_length(&Length)) ? Length : 0;
60 }
61 
63  DWORD Id = 0;
64  return (S_OK == LineNumber->get_sourceFileId(&Id)) ? Id : 0;
65 }
66 
68  DWORD Id = 0;
69  return (S_OK == LineNumber->get_compilandId(&Id)) ? Id : 0;
70 }
71 
73  BOOL Statement = 0;
74  return (S_OK == LineNumber->get_statement(&Statement)) ? Statement : false;
75 }
llvm::pdb::DIALineNumber::getLineNumber
uint32_t getLineNumber() const override
Definition: DIALineNumber.cpp:17
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
Offset
uint64_t Offset
Definition: ELFObjHandler.cpp:81
DIALineNumber.h
llvm::pdb::DIALineNumber::isStatement
bool isStatement() const override
Definition: DIALineNumber.cpp:72
llvm::ARMBuildAttrs::Section
@ Section
Legacy Tags.
Definition: ARMBuildAttributes.h:78
llvm::pdb::DIALineNumber::getLineNumberEnd
uint32_t getLineNumberEnd() const override
Definition: DIALineNumber.cpp:22
llvm::pdb::DIALineNumber::DIALineNumber
DIALineNumber(CComPtr< IDiaLineNumber > DiaLineNumber)
Definition: DIALineNumber.cpp:14
llvm::pdb::DIALineNumber::getCompilandId
uint32_t getCompilandId() const override
Definition: DIALineNumber.cpp:67
llvm::pdb
Definition: ConcreteSymbolEnumerator.h:20
llvm::pdb::DIALineNumber::getColumnNumberEnd
uint32_t getColumnNumberEnd() const override
Definition: DIALineNumber.cpp:32
uint64_t
Addr
uint64_t Addr
Definition: ELFObjHandler.cpp:80
llvm::AMDGPU::SDWA::DWORD
@ DWORD
Definition: SIDefines.h:656
llvm::pdb::DIALineNumber::getSourceFileId
uint32_t getSourceFileId() const override
Definition: DIALineNumber.cpp:62
llvm::pdb::DIALineNumber::getLength
uint32_t getLength() const override
Definition: DIALineNumber.cpp:57
uint32_t
llvm::pdb::DIALineNumber::getAddressOffset
uint32_t getAddressOffset() const override
Definition: DIALineNumber.cpp:42
llvm::pdb::DIALineNumber::getVirtualAddress
uint64_t getVirtualAddress() const override
Definition: DIALineNumber.cpp:52
llvm::pdb::DIALineNumber::getColumnNumber
uint32_t getColumnNumber() const override
Definition: DIALineNumber.cpp:27
llvm::pdb::DIALineNumber::getRelativeVirtualAddress
uint32_t getRelativeVirtualAddress() const override
Definition: DIALineNumber.cpp:47
llvm::pdb::DIALineNumber::getAddressSection
uint32_t getAddressSection() const override
Definition: DIALineNumber.cpp:37
llvm::AMDGPU::VGPRIndexMode::Id
Id
Definition: SIDefines.h:231