You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.167
Former-commit-id: 289509151e0fee68a1b591a20c9f109c3c789d3a
This commit is contained in:
parent
e19d552987
commit
b084638f15
@ -1,41 +0,0 @@
|
||||
//===- PrettyExternalSymbolDumper.cpp -------------------------- *- C++ *-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "PrettyExternalSymbolDumper.h"
|
||||
#include "LinePrinter.h"
|
||||
|
||||
#include "llvm/DebugInfo/PDB/PDBSymbolExe.h"
|
||||
#include "llvm/DebugInfo/PDB/PDBSymbolPublicSymbol.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
|
||||
using namespace llvm;
|
||||
using namespace llvm::pdb;
|
||||
|
||||
ExternalSymbolDumper::ExternalSymbolDumper(LinePrinter &P)
|
||||
: PDBSymDumper(true), Printer(P) {}
|
||||
|
||||
void ExternalSymbolDumper::start(const PDBSymbolExe &Symbol) {
|
||||
auto Vars = Symbol.findAllChildren<PDBSymbolPublicSymbol>();
|
||||
while (auto Var = Vars->getNext())
|
||||
Var->dump(*this);
|
||||
}
|
||||
|
||||
void ExternalSymbolDumper::dump(const PDBSymbolPublicSymbol &Symbol) {
|
||||
std::string LinkageName = Symbol.getName();
|
||||
if (Printer.IsSymbolExcluded(LinkageName))
|
||||
return;
|
||||
|
||||
Printer.NewLine();
|
||||
uint64_t Addr = Symbol.getVirtualAddress();
|
||||
|
||||
Printer << "[";
|
||||
WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(Addr, 10);
|
||||
Printer << "] ";
|
||||
WithColor(Printer, PDB_ColorItem::Identifier).get() << LinkageName;
|
||||
}
|
Reference in New Issue
Block a user