LLVM  9.0.0svn
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)
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
#define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue)
Definition: PDBSymbol.h:50
This class represents lattice values for constants.
Definition: AllocatorList.h:23
static StringRef getName(Value *V)
#define FORWARD_SYMBOL_METHOD(MethodName)
Definition: PDBSymbol.h:19
std::unique_ptr< IPDBEnumLineNumbers > getLineNumbers() const
std::pair< StringRef, StringRef > getToken(StringRef Source, StringRef Delimiters=" \\\)
getToken - This function extracts one token from source, ignoring any leading characters that appear ...
static Error getOffset(const SymbolRef &Sym, SectionRef Sec, uint64_t &Result)
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
uint32_t getCompilandId() const
static wasm::ValType getType(const TargetRegisterClass *RC)
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e...
Definition: PDBSymbol.h:73
#define FORWARD_SYMBOL_ID_METHOD(MethodName)
Definition: PDBSymbol.h:38