LLVM  14.0.0git
PDBSymbolData.h
Go to the documentation of this file.
1 //===- PDBSymbolData.h - PDB data (e.g. variable) accessors -----*- 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_PDBSYMBOLDATA_H
10 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
11 
12 #include "IPDBLineNumber.h"
13 #include "PDBSymbol.h"
14 #include "PDBTypes.h"
15 
16 namespace llvm {
17 
18 class raw_ostream;
19 
20 namespace pdb {
21 
22 class PDBSymbolData : public PDBSymbol {
24 public:
25  void dump(PDBSymDumper &Dumper) const override;
26 
27  FORWARD_SYMBOL_METHOD(getAccess)
28  FORWARD_SYMBOL_METHOD(getAddressOffset)
29  FORWARD_SYMBOL_METHOD(getAddressSection)
30  FORWARD_SYMBOL_METHOD(getAddressTaken)
31  FORWARD_SYMBOL_METHOD(getBitPosition)
32  FORWARD_SYMBOL_ID_METHOD(getClassParent)
33  FORWARD_SYMBOL_METHOD(isCompilerGenerated)
34  FORWARD_SYMBOL_METHOD(isConstType)
35  FORWARD_SYMBOL_METHOD(getDataKind)
36  FORWARD_SYMBOL_METHOD(isAggregated)
37  FORWARD_SYMBOL_METHOD(isSplitted)
38  FORWARD_SYMBOL_METHOD(getLength)
39  FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
40  FORWARD_SYMBOL_METHOD(getLocationType)
43  FORWARD_SYMBOL_METHOD(getRegisterId)
44  FORWARD_SYMBOL_METHOD(getRelativeVirtualAddress)
45  FORWARD_SYMBOL_METHOD(getSlot)
46  FORWARD_SYMBOL_METHOD(getToken)
48  FORWARD_SYMBOL_METHOD(isUnalignedType)
49  FORWARD_SYMBOL_METHOD(getValue)
50  FORWARD_SYMBOL_METHOD(getVirtualAddress)
51  FORWARD_SYMBOL_METHOD(isVolatileType)
52 
53  std::unique_ptr<IPDBEnumLineNumbers> getLineNumbers() const;
54  uint32_t getCompilandId() const;
55 };
56 } // namespace pdb
57 } // namespace llvm
58 
59 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
llvm::pdb::PDBSymbol::getName
std::string getName() const
Definition: PDBSymbol.cpp:183
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::pdb::PDBSymbolData::dump
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
Definition: PDBSymbolData.cpp:19
DECLARE_PDB_SYMBOL_CONCRETE_TYPE
#define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue)
Definition: PDBSymbol.h:47
llvm::pdb::PDBSymbolData
Definition: PDBSymbolData.h:22
llvm::getOffset
static Error getOffset(const SymbolRef &Sym, SectionRef Sec, uint64_t &Result)
Definition: RuntimeDyld.cpp:170
llvm::Intrinsic::getType
FunctionType * getType(LLVMContext &Context, ID id, ArrayRef< Type * > Tys=None)
Return the function type for an intrinsic.
Definition: Function.cpp:1335
IPDBLineNumber.h
llvm::pdb::PDBSymbol
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e....
Definition: PDBSymbol.h:70
PDBSymbol.h
PDBTypes.h
llvm::pdb::PDBSymbolData::getLineNumbers
std::unique_ptr< IPDBEnumLineNumbers > getLineNumbers() const
Definition: PDBSymbolData.cpp:21
llvm::pdb::PDBSymDumper
Definition: PDBSymDumper.h:19
llvm::pdb::PDB_SymType::Data
@ Data
uint32_t
FORWARD_SYMBOL_ID_METHOD
#define FORWARD_SYMBOL_ID_METHOD(MethodName)
Definition: PDBSymbol.h:36
llvm::pdb::PDBSymbolData::getCompilandId
uint32_t getCompilandId() const
Definition: PDBSymbolData.cpp:34
FORWARD_SYMBOL_METHOD
#define FORWARD_SYMBOL_METHOD(MethodName)
Definition: PDBSymbol.h:19