2015-02-08 08:29:29 +08:00
|
|
|
//===- PDBSymbolData.cpp - PDB data (e.g. variable) accessors ---*- 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 11:53:56 +08:00
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymbolData.h"
|
|
|
|
|
2015-02-23 13:58:34 +08:00
|
|
|
#include "llvm/DebugInfo/PDB/IPDBSession.h"
|
2015-02-23 06:03:38 +08:00
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
|
2015-02-11 06:43:25 +08:00
|
|
|
|
2015-02-14 11:53:56 +08:00
|
|
|
#include <utility>
|
|
|
|
|
2015-02-08 08:29:29 +08:00
|
|
|
using namespace llvm;
|
|
|
|
|
2015-02-09 06:53:53 +08:00
|
|
|
PDBSymbolData::PDBSymbolData(const IPDBSession &PDBSession,
|
2015-02-09 04:58:09 +08:00
|
|
|
std::unique_ptr<IPDBRawSymbol> DataSymbol)
|
|
|
|
: PDBSymbol(PDBSession, std::move(DataSymbol)) {}
|
2015-02-08 08:29:29 +08:00
|
|
|
|
2015-02-23 13:58:34 +08:00
|
|
|
std::unique_ptr<PDBSymbol> PDBSymbolData::getType() const {
|
|
|
|
return Session.getSymbolById(getTypeId());
|
|
|
|
}
|
|
|
|
|
2015-05-16 03:13:31 +08:00
|
|
|
void PDBSymbolData::dump(PDBSymDumper &Dumper) const { Dumper.dump(*this); }
|