LLVM  7.0.0
PDBSymbolData.h
Go to the documentation of this file.
1 //===- PDBSymbolData.h - PDB data (e.g. variable) accessors -----*- 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 
10 #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
11 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
12 
13 #include "IPDBLineNumber.h"
14 #include "PDBSymbol.h"
15 #include "PDBTypes.h"
16 
17 namespace llvm {
18 
19 class raw_ostream;
20 
21 namespace pdb {
22 
23 class PDBSymbolData : public PDBSymbol {
24 public:
25  PDBSymbolData(const IPDBSession &PDBSession,
26  std::unique_ptr<IPDBRawSymbol> DataSymbol);
27 
29 
30  void dump(PDBSymDumper &Dumper) const override;
31 
32  FORWARD_SYMBOL_METHOD(getAccess)
33  FORWARD_SYMBOL_METHOD(getAddressOffset)
34  FORWARD_SYMBOL_METHOD(getAddressSection)
35  FORWARD_SYMBOL_METHOD(getAddressTaken)
36  FORWARD_SYMBOL_METHOD(getBitPosition)
37  FORWARD_SYMBOL_ID_METHOD(getClassParent)
38  FORWARD_SYMBOL_METHOD(isCompilerGenerated)
39  FORWARD_SYMBOL_METHOD(isConstType)
40  FORWARD_SYMBOL_METHOD(getDataKind)
41  FORWARD_SYMBOL_METHOD(isAggregated)
42  FORWARD_SYMBOL_METHOD(isSplitted)
43  FORWARD_SYMBOL_METHOD(getLength)
44  FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
45  FORWARD_SYMBOL_METHOD(getLocationType)
48  FORWARD_SYMBOL_METHOD(getRegisterId)
49  FORWARD_SYMBOL_METHOD(getRelativeVirtualAddress)
50  FORWARD_SYMBOL_METHOD(getSlot)
53  FORWARD_SYMBOL_METHOD(isUnalignedType)
54  FORWARD_SYMBOL_METHOD(getValue)
55  FORWARD_SYMBOL_METHOD(getVirtualAddress)
56  FORWARD_SYMBOL_METHOD(isVolatileType)
57 
58  std::unique_ptr<IPDBEnumLineNumbers> getLineNumbers() const;
59  uint32_t getCompilandId() const;
60 };
61 } // namespace pdb
62 } // namespace llvm
63 
64 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
Definition: IPDBSession.h:26
#define DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue)
Definition: PDBSymbol.h:51
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
static StringRef getName(Value *V)
PDBSymbolData(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > DataSymbol)
#define FORWARD_SYMBOL_METHOD(MethodName)
Definition: PDBSymbol.h:20
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:61
#define FORWARD_SYMBOL_ID_METHOD(MethodName)
Definition: PDBSymbol.h:39