[llvm-pdbdump] Rewrite dumper using visitor pattern.
[oota-llvm.git] / lib / DebugInfo / PDB / PDBSymbolTypeDimension.cpp
1 //===- PDBSymbolTypeDimension.cpp - --------------------------------*- C++
2 //-*-===//
3 //
4 //                     The LLVM Compiler Infrastructure
5 //
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
10
11 #include "llvm/DebugInfo/PDB/PDBSymbolTypeDimension.h"
12
13 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
14 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
15
16 #include <utility>
17
18 using namespace llvm;
19
20 PDBSymbolTypeDimension::PDBSymbolTypeDimension(
21     const IPDBSession &PDBSession, std::unique_ptr<IPDBRawSymbol> Symbol)
22     : PDBSymbol(PDBSession, std::move(Symbol)) {}
23
24 void PDBSymbolTypeDimension::dump(raw_ostream &OS, int Indent,
25                                   PDBSymDumper &Dumper) const {
26   Dumper.dump(*this, OS, Indent);
27 }