2015-02-08 00:29:29 +00:00
|
|
|
//===- PDBSymbolLabel.cpp - -------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymbolLabel.h"
|
2015-02-14 03:53:56 +00:00
|
|
|
|
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymbol.h"
|
2015-02-13 07:40:03 +00:00
|
|
|
#include "llvm/Support/Format.h"
|
2015-02-14 03:53:56 +00:00
|
|
|
|
2015-02-13 09:09:03 +00:00
|
|
|
#include <utility>
|
2015-02-13 07:40:03 +00:00
|
|
|
|
2015-02-08 00:29:29 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2015-02-08 22:53:53 +00:00
|
|
|
PDBSymbolLabel::PDBSymbolLabel(const IPDBSession &PDBSession,
|
2015-02-08 20:58:09 +00:00
|
|
|
std::unique_ptr<IPDBRawSymbol> Symbol)
|
2015-02-08 23:15:37 +00:00
|
|
|
: PDBSymbol(PDBSession, std::move(Symbol)) {}
|
2015-02-08 00:29:29 +00:00
|
|
|
|
2015-02-10 22:43:25 +00:00
|
|
|
void PDBSymbolLabel::dump(raw_ostream &OS, int Indent,
|
2015-02-15 20:27:53 +00:00
|
|
|
PDB_DumpLevel Level, PDB_DumpFlags Flags) const {
|
2015-02-13 07:40:03 +00:00
|
|
|
OS << stream_indent(Indent);
|
|
|
|
OS << "label [" << format_hex(getRelativeVirtualAddress(), 10) << "] "
|
|
|
|
<< getName();
|
|
|
|
}
|