LLVM  4.0.0
PDBSymbolData.cpp
Go to the documentation of this file.
1 //===- PDBSymbolData.cpp - 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 
11 
14 
15 #include <utility>
16 
17 using namespace llvm;
18 using namespace llvm::pdb;
19 
21  std::unique_ptr<IPDBRawSymbol> DataSymbol)
22  : PDBSymbol(PDBSession, std::move(DataSymbol)) {}
23 
24 std::unique_ptr<PDBSymbol> PDBSymbolData::getType() const {
25  return Session.getSymbolById(getTypeId());
26 }
27 
28 void PDBSymbolData::dump(PDBSymDumper &Dumper) const { Dumper.dump(*this); }
IPDBSession defines an interface used to provide a context for querying debug information from a debu...
Definition: IPDBSession.h:25
PDBSymbolData(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > DataSymbol)
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
virtual std::unique_ptr< PDBSymbol > getSymbolById(uint32_t SymbolId) const =0
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e...
Definition: PDBSymbol.h:43
std::unique_ptr< PDBSymbol > getType() const
virtual void dump(const PDBSymbolAnnotation &Symbol)
const IPDBSession & Session
Definition: PDBSymbol.h:94