1 //===- PDBSymbolTypePointer.cpp - --------------------------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #include "llvm/DebugInfo/PDB/IPDBSession.h"
12 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
13 #include "llvm/DebugInfo/PDB/PDBSymbolTypePointer.h"
18 PDBSymbolTypePointer::PDBSymbolTypePointer(
19 const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
20 : PDBSymbol(PDBSession, std::move(Symbol)) {}
22 void PDBSymbolTypePointer::dump(raw_ostream &OS, int Indent,
23 PDB_DumpLevel Level) const {
24 OS << stream_indent(Indent);
29 uint32_t PointeeId = getTypeId();
30 if (auto PointeeType = Session.getSymbolById(PointeeId))
31 PointeeType->dump(OS, 0, PDB_DumpLevel::Compact);
32 OS << ((isReference()) ? "&" : "*");