2015-02-06 20:30:52 +00:00
|
|
|
//===- PDBSymbolCustom.cpp - compiler-specific types ------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2015-02-14 03:53:56 +00:00
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymbolCustom.h"
|
|
|
|
|
2015-02-06 20:30:52 +00:00
|
|
|
#include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
|
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymbol.h"
|
2015-02-22 22:03:38 +00:00
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
|
2015-02-14 03:53:56 +00:00
|
|
|
|
2015-02-13 09:09:03 +00:00
|
|
|
#include <utility>
|
2015-02-06 20:30:52 +00:00
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2015-02-08 22:53:53 +00:00
|
|
|
PDBSymbolCustom::PDBSymbolCustom(const IPDBSession &PDBSession,
|
2015-02-08 20:58:09 +00:00
|
|
|
std::unique_ptr<IPDBRawSymbol> CustomSymbol)
|
|
|
|
: PDBSymbol(PDBSession, std::move(CustomSymbol)) {}
|
2015-02-08 00:29:29 +00:00
|
|
|
|
2015-02-06 20:30:52 +00:00
|
|
|
void PDBSymbolCustom::getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes) {
|
|
|
|
RawSymbol->getDataBytes(bytes);
|
|
|
|
}
|
2015-02-08 00:29:29 +00:00
|
|
|
|
2015-03-01 06:51:29 +00:00
|
|
|
void PDBSymbolCustom::dump(PDBSymDumper &Dumper) const { Dumper.dump(*this); }
|