blob: a23308f7b40e99efc0a1a7bacddc9bab13652f42 [file] [log] [blame]
Zachary Turner21473f72015-02-08 00:29:29 +00001//===- PDBSymbolLabel.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
Zachary Turner21473f72015-02-08 00:29:29 +000010#include "llvm/DebugInfo/PDB/PDBSymbol.h"
11#include "llvm/DebugInfo/PDB/PDBSymbolLabel.h"
Zachary Turnera952c492015-02-13 07:40:03 +000012#include "llvm/Support/Format.h"
Chandler Carruth71f308a2015-02-13 09:09:03 +000013#include <utility>
Zachary Turnera952c492015-02-13 07:40:03 +000014
Zachary Turner21473f72015-02-08 00:29:29 +000015using namespace llvm;
16
Zachary Turner98571ed2015-02-08 22:53:53 +000017PDBSymbolLabel::PDBSymbolLabel(const IPDBSession &PDBSession,
Zachary Turnerbae16b32015-02-08 20:58:09 +000018 std::unique_ptr<IPDBRawSymbol> Symbol)
David Blaikiee4698b92015-02-08 23:15:37 +000019 : PDBSymbol(PDBSession, std::move(Symbol)) {}
Zachary Turner21473f72015-02-08 00:29:29 +000020
Zachary Turnera5549172015-02-10 22:43:25 +000021void PDBSymbolLabel::dump(raw_ostream &OS, int Indent,
Zachary Turnera952c492015-02-13 07:40:03 +000022 PDB_DumpLevel Level) const {
23 OS << stream_indent(Indent);
24 OS << "label [" << format_hex(getRelativeVirtualAddress(), 10) << "] "
25 << getName();
26}