LLVM  8.0.1
DIALineNumber.cpp
Go to the documentation of this file.
1 //===- DIALineNumber.cpp - DIA implementation of IPDBLineNumber -*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
11 
12 using namespace llvm;
13 using namespace llvm::pdb;
14 
15 DIALineNumber::DIALineNumber(CComPtr<IDiaLineNumber> DiaLineNumber)
16  : LineNumber(DiaLineNumber) {}
17 
19  DWORD Line = 0;
20  return (S_OK == LineNumber->get_lineNumber(&Line)) ? Line : 0;
21 }
22 
24  DWORD LineEnd = 0;
25  return (S_OK == LineNumber->get_lineNumberEnd(&LineEnd)) ? LineEnd : 0;
26 }
27 
29  DWORD Column = 0;
30  return (S_OK == LineNumber->get_columnNumber(&Column)) ? Column : 0;
31 }
32 
34  DWORD ColumnEnd = 0;
35  return (S_OK == LineNumber->get_columnNumberEnd(&ColumnEnd)) ? ColumnEnd : 0;
36 }
37 
39  DWORD Section = 0;
40  return (S_OK == LineNumber->get_addressSection(&Section)) ? Section : 0;
41 }
42 
44  DWORD Offset = 0;
45  return (S_OK == LineNumber->get_addressOffset(&Offset)) ? Offset : 0;
46 }
47 
49  DWORD RVA = 0;
50  return (S_OK == LineNumber->get_relativeVirtualAddress(&RVA)) ? RVA : 0;
51 }
52 
54  ULONGLONG Addr = 0;
55  return (S_OK == LineNumber->get_virtualAddress(&Addr)) ? Addr : 0;
56 }
57 
59  DWORD Length = 0;
60  return (S_OK == LineNumber->get_length(&Length)) ? Length : 0;
61 }
62 
64  DWORD Id = 0;
65  return (S_OK == LineNumber->get_sourceFileId(&Id)) ? Id : 0;
66 }
67 
69  DWORD Id = 0;
70  return (S_OK == LineNumber->get_compilandId(&Id)) ? Id : 0;
71 }
72 
74  BOOL Statement = 0;
75  return (S_OK == LineNumber->get_statement(&Statement)) ? Statement : false;
76 }
This class represents lattice values for constants.
Definition: AllocatorList.h:24
uint32_t getLineNumberEnd() const override
uint32_t getAddressOffset() const override
uint64_t getVirtualAddress() const override
DIALineNumber(CComPtr< IDiaLineNumber > DiaLineNumber)
uint32_t getLength() const override
uint32_t getCompilandId() const override
uint32_t getSourceFileId() const override
bool isStatement() const override
uint32_t getColumnNumber() const override
uint32_t getColumnNumberEnd() const override
uint32_t getLineNumber() const override
uint32_t getRelativeVirtualAddress() const override
uint32_t getAddressSection() const override