LLVM  8.0.1
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 {
25 public:
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)
46  FORWARD_SYMBOL_METHOD(getSlot)
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 DECLARE_PDB_SYMBOL_CONCRETE_TYPE(TagValue)
Definition: PDBSymbol.h:51
This class represents lattice values for constants.
Definition: AllocatorList.h:24
static StringRef getName(Value *V)
#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:74
#define FORWARD_SYMBOL_ID_METHOD(MethodName)
Definition: PDBSymbol.h:39