PDBSymbolTypePointer.cpp revision 283625
1283625Sdim//===- PDBSymbolTypePointer.cpp -----------------------------------*- C++ -===// 2283625Sdim// 3283625Sdim// The LLVM Compiler Infrastructure 4283625Sdim// 5283625Sdim// This file is distributed under the University of Illinois Open Source 6283625Sdim// License. See LICENSE.TXT for details. 7283625Sdim// 8283625Sdim//===----------------------------------------------------------------------===// 9283625Sdim 10283625Sdim#include "llvm/DebugInfo/PDB/PDBSymbolTypePointer.h" 11283625Sdim 12283625Sdim#include "llvm/DebugInfo/PDB/IPDBSession.h" 13283625Sdim#include "llvm/DebugInfo/PDB/PDBSymDumper.h" 14283625Sdim 15283625Sdim#include <utility> 16283625Sdim 17283625Sdimusing namespace llvm; 18283625Sdim 19283625SdimPDBSymbolTypePointer::PDBSymbolTypePointer( 20283625Sdim const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol) 21283625Sdim : PDBSymbol(PDBSession, std::move(Symbol)) {} 22283625Sdim 23283625Sdimstd::unique_ptr<PDBSymbol> PDBSymbolTypePointer::getPointeeType() const { 24283625Sdim return Session.getSymbolById(getTypeId()); 25283625Sdim} 26283625Sdim 27283625Sdimvoid PDBSymbolTypePointer::dump(PDBSymDumper &Dumper) const { 28283625Sdim Dumper.dump(*this); 29283625Sdim} 30