LLVM 22.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 "PDBSymbol.h"
13#include "PDBTypes.h"
16
17namespace llvm {
18
19namespace pdb {
20
21class PDBSymDumper;
22
24 DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Data)
25public:
26 void dump(PDBSymDumper &Dumper) const override;
27
28 FORWARD_SYMBOL_METHOD(getAccess)
29 FORWARD_SYMBOL_METHOD(getAddressOffset)
30 FORWARD_SYMBOL_METHOD(getAddressSection)
31 FORWARD_SYMBOL_METHOD(getAddressTaken)
32 FORWARD_SYMBOL_METHOD(getBitPosition)
33 FORWARD_SYMBOL_ID_METHOD(getClassParent)
34 FORWARD_SYMBOL_METHOD(isCompilerGenerated)
35 FORWARD_SYMBOL_METHOD(isConstType)
36 FORWARD_SYMBOL_METHOD(getDataKind)
37 FORWARD_SYMBOL_METHOD(isAggregated)
38 FORWARD_SYMBOL_METHOD(isSplitted)
39 FORWARD_SYMBOL_METHOD(getLength)
40 FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
41 FORWARD_SYMBOL_METHOD(getLocationType)
44 FORWARD_SYMBOL_METHOD(getRegisterId)
45 FORWARD_SYMBOL_METHOD(getRelativeVirtualAddress)
47 FORWARD_SYMBOL_METHOD(getToken)
49 FORWARD_SYMBOL_METHOD(isUnalignedType)
50 FORWARD_SYMBOL_METHOD(getValue)
51 FORWARD_SYMBOL_METHOD(getVirtualAddress)
52 FORWARD_SYMBOL_METHOD(isVolatileType)
53
54 std::unique_ptr<IPDBEnumLineNumbers> getLineNumbers() const;
55 uint32_t getCompilandId() const;
56};
57} // namespace pdb
58} // namespace llvm
59
60#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
#define LLVM_ABI
Definition: Compiler.h:213
#define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue)
Definition: PDBSymbol.h:49
#define FORWARD_SYMBOL_ID_METHOD(MethodName)
Definition: PDBSymbol.h:35
#define FORWARD_SYMBOL_METHOD(MethodName)
Definition: PDBSymbol.h:18
static StringRef getName(Value *V)
static std::optional< int32_t > getOffset(ArrayRef< int32_t > Offsets, size_t Idx)
static SymbolRef::Type getType(const Symbol *Sym)
Definition: TapiFile.cpp:39
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e....
Definition: PDBSymbol.h:72
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
void dump(const SparseBitVector< ElementSize > &LHS, raw_ostream &out)