LLVM  4.0.0
PDBSymbolTypeEnum.cpp
Go to the documentation of this file.
1 //===- PDBSymbolTypeEnum.cpp - --------------------------------*- 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 
16 
17 #include <utility>
18 
19 using namespace llvm;
20 using namespace llvm::pdb;
21 
23  std::unique_ptr<IPDBRawSymbol> Symbol)
24  : PDBSymbol(PDBSession, std::move(Symbol)) {}
25 
26 std::unique_ptr<PDBSymbolTypeUDT> PDBSymbolTypeEnum::getClassParent() const {
27  return Session.getConcreteSymbolById<PDBSymbolTypeUDT>(getClassParentId());
28 }
29 
30 std::unique_ptr<PDBSymbolTypeBuiltin>
33 }
34 
35 void PDBSymbolTypeEnum::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
std::unique_ptr< PDBSymbolTypeUDT > getClassParent() const
void dump(PDBSymDumper &Dumper) const override
Dumps the contents of a symbol a raw_ostream.
std::unique_ptr< T > getConcreteSymbolById(uint32_t SymbolId) const
Definition: IPDBSession.h:35
PDBSymbol defines the base of the inheritance hierarchy for concrete symbol types (e...
Definition: PDBSymbol.h:43
std::unique_ptr< PDBSymbolTypeBuiltin > getUnderlyingType() const
virtual void dump(const PDBSymbolAnnotation &Symbol)
const IPDBSession & Session
Definition: PDBSymbol.h:94
PDBSymbolTypeEnum(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > EnumTypeSymbol)