forked from OSchip/llvm-project
parent
9349671488
commit
d0be170414
|
@ -55,7 +55,6 @@ void ClassDefinitionDumper::start(const PDBSymbolTypeUDT &Class,
|
||||||
if (isa<PDBSymbolTypeBaseClass>(*Child))
|
if (isa<PDBSymbolTypeBaseClass>(*Child))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
SymbolGroup *InsertGroup = nullptr;
|
|
||||||
auto &AccessGroup = Groups.find((int)Access)->second;
|
auto &AccessGroup = Groups.find((int)Access)->second;
|
||||||
|
|
||||||
if (auto Func = dyn_cast<PDBSymbolFunc>(Child.get())) {
|
if (auto Func = dyn_cast<PDBSymbolFunc>(Child.get())) {
|
||||||
|
|
|
@ -45,12 +45,10 @@ void VariableDumper::start(const PDBSymbolData &Var, raw_ostream &OS,
|
||||||
dumpSymbolTypeAndName(*VarType, Var.getName(), OS);
|
dumpSymbolTypeAndName(*VarType, Var.getName(), OS);
|
||||||
OS << "[" << Var.getValue() << "]";
|
OS << "[" << Var.getValue() << "]";
|
||||||
break;
|
break;
|
||||||
case PDB_LocType::ThisRel: {
|
case PDB_LocType::ThisRel:
|
||||||
int Offset = Var.getOffset();
|
|
||||||
OS << "+" << format_hex(Var.getOffset(), 4) << " ";
|
OS << "+" << format_hex(Var.getOffset(), 4) << " ";
|
||||||
dumpSymbolTypeAndName(*VarType, Var.getName(), OS);
|
dumpSymbolTypeAndName(*VarType, Var.getName(), OS);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
OS << "unknown(" << LocType << ") " << Var.getName();
|
OS << "unknown(" << LocType << ") " << Var.getName();
|
||||||
|
@ -72,7 +70,6 @@ void VariableDumper::dump(const PDBSymbolTypeFunctionSig &Symbol,
|
||||||
|
|
||||||
void VariableDumper::dump(const PDBSymbolTypePointer &Symbol, raw_ostream &OS,
|
void VariableDumper::dump(const PDBSymbolTypePointer &Symbol, raw_ostream &OS,
|
||||||
int Indent) {
|
int Indent) {
|
||||||
uint32_t PointeeId = Symbol.getTypeId();
|
|
||||||
auto PointeeType = Symbol.getPointeeType();
|
auto PointeeType = Symbol.getPointeeType();
|
||||||
if (!PointeeType)
|
if (!PointeeType)
|
||||||
return;
|
return;
|
||||||
|
@ -106,7 +103,6 @@ void VariableDumper::dump(const PDBSymbolTypeUDT &Symbol, raw_ostream &OS,
|
||||||
void VariableDumper::dumpSymbolTypeAndName(const PDBSymbol &Type,
|
void VariableDumper::dumpSymbolTypeAndName(const PDBSymbol &Type,
|
||||||
StringRef Name, raw_ostream &OS) {
|
StringRef Name, raw_ostream &OS) {
|
||||||
if (auto *ArrayType = dyn_cast<PDBSymbolTypeArray>(&Type)) {
|
if (auto *ArrayType = dyn_cast<PDBSymbolTypeArray>(&Type)) {
|
||||||
bool Done = false;
|
|
||||||
std::string IndexSpec;
|
std::string IndexSpec;
|
||||||
raw_string_ostream IndexStream(IndexSpec);
|
raw_string_ostream IndexStream(IndexSpec);
|
||||||
std::unique_ptr<PDBSymbol> ElementType = ArrayType->getElementType();
|
std::unique_ptr<PDBSymbol> ElementType = ArrayType->getElementType();
|
||||||
|
|
Loading…
Reference in New Issue