blob: bd7d9cda21817fbdfaf00a3244238a2873149706 [file] [log] [blame]
Zachary Turner0e9e6632015-02-06 20:30:52 +00001//===- PDBSymbolCustom.cpp - compiler-specific types ------------*- 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
Zachary Turner52c9f882015-02-14 03:53:56 +000010#include "llvm/DebugInfo/PDB/PDBSymbolCustom.h"
11
Zachary Turner0e9e6632015-02-06 20:30:52 +000012#include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
13#include "llvm/DebugInfo/PDB/PDBSymbol.h"
Zachary Turner9a818ad2015-02-22 22:03:38 +000014#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
Zachary Turner52c9f882015-02-14 03:53:56 +000015
Chandler Carruth71f308a2015-02-13 09:09:03 +000016#include <utility>
Zachary Turner0e9e6632015-02-06 20:30:52 +000017
18using namespace llvm;
19
Zachary Turner98571ed2015-02-08 22:53:53 +000020PDBSymbolCustom::PDBSymbolCustom(const IPDBSession &PDBSession,
Zachary Turnerbae16b32015-02-08 20:58:09 +000021 std::unique_ptr<IPDBRawSymbol> CustomSymbol)
22 : PDBSymbol(PDBSession, std::move(CustomSymbol)) {}
Zachary Turner21473f72015-02-08 00:29:29 +000023
Zachary Turner0e9e6632015-02-06 20:30:52 +000024void PDBSymbolCustom::getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes) {
25 RawSymbol->getDataBytes(bytes);
26}
Zachary Turner21473f72015-02-08 00:29:29 +000027
Jim Grosbach4c98cf72015-05-15 19:13:31 +000028void PDBSymbolCustom::dump(PDBSymDumper &Dumper) const { Dumper.dump(*this); }