]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/lib/DebugInfo/PDB/PDBSymbolTypeUDT.cpp
MFV r337586: lua: Update to 5.3.5
[FreeBSD/FreeBSD.git] / contrib / llvm / lib / DebugInfo / PDB / PDBSymbolTypeUDT.cpp
1 //===- PDBSymbolTypeUDT.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
10 #include "llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h"
11
12 #include "llvm/DebugInfo/PDB/IPDBSession.h"
13 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
14 #include "llvm/DebugInfo/PDB/PDBSymbol.h"
15 #include "llvm/DebugInfo/PDB/PDBSymbolData.h"
16 #include "llvm/DebugInfo/PDB/PDBSymbolExe.h"
17 #include "llvm/DebugInfo/PDB/PDBSymbolTypeBaseClass.h"
18 #include "llvm/DebugInfo/PDB/PDBSymbolTypeVTable.h"
19 #include "llvm/DebugInfo/PDB/PDBSymbolTypeVTableShape.h"
20
21 #include <utility>
22
23 using namespace llvm;
24 using namespace llvm::pdb;
25
26 PDBSymbolTypeUDT::PDBSymbolTypeUDT(const IPDBSession &PDBSession,
27                                    std::unique_ptr<IPDBRawSymbol> Symbol)
28     : PDBSymbol(PDBSession, std::move(Symbol)) {
29   assert(RawSymbol->getSymTag() == PDB_SymType::UDT);
30 }
31
32 void PDBSymbolTypeUDT::dump(PDBSymDumper &Dumper) const { Dumper.dump(*this); }