mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 05:29:47 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229231 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
//===- PDBSymbolTypeEnum.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/PDBSymbolTypeEnum.h"
|
|
|
|
#include "llvm/DebugInfo/PDB/IPDBSession.h"
|
|
#include "llvm/DebugInfo/PDB/PDBSymbol.h"
|
|
|
|
#include <utility>
|
|
|
|
using namespace llvm;
|
|
|
|
PDBSymbolTypeEnum::PDBSymbolTypeEnum(const IPDBSession &PDBSession,
|
|
std::unique_ptr<IPDBRawSymbol> Symbol)
|
|
: PDBSymbol(PDBSession, std::move(Symbol)) {}
|
|
|
|
void PDBSymbolTypeEnum::dump(raw_ostream &OS, int Indent,
|
|
PDB_DumpLevel Level) const {
|
|
OS << stream_indent(Indent);
|
|
if (Level >= PDB_DumpLevel::Normal)
|
|
OS << "enum ";
|
|
|
|
uint32_t ClassId = getClassParentId();
|
|
if (ClassId != 0) {
|
|
if (auto ClassParent = Session.getSymbolById(ClassId)) {
|
|
ClassParent->dump(OS, 0, Level);
|
|
OS << "::";
|
|
}
|
|
}
|
|
OS << getName();
|
|
}
|