Fix CVTypeDumperImpl formatting after class rename

llvm-svn: 268678
This commit is contained in:
Reid Kleckner 2016-05-05 20:31:16 +00:00
parent 18399b0ddc
commit 338034759a
1 changed files with 49 additions and 39 deletions

View File

@ -384,7 +384,8 @@ void CVTypeDumperImpl::visitArrayType(TypeLeafKind Leaf, const ArrayType *AT,
W.printString("Name", Name);
}
void CVTypeDumperImpl::visitVFTableType(TypeLeafKind Leaf, const VFTableType *VFT,
void CVTypeDumperImpl::visitVFTableType(TypeLeafKind Leaf,
const VFTableType *VFT,
ArrayRef<uint8_t> LeafData) {
printTypeIndex("CompleteClass", VFT->CompleteClass);
printTypeIndex("OverriddenVFTable", VFT->OverriddenVFTable);
@ -399,7 +400,8 @@ void CVTypeDumperImpl::visitVFTableType(TypeLeafKind Leaf, const VFTableType *VF
}
}
void CVTypeDumperImpl::visitMemberFuncId(TypeLeafKind Leaf, const MemberFuncId *Id,
void CVTypeDumperImpl::visitMemberFuncId(TypeLeafKind Leaf,
const MemberFuncId *Id,
ArrayRef<uint8_t> LeafData) {
printTypeIndex("ClassType", Id->ClassType);
printTypeIndex("FunctionType", Id->FunctionType);
@ -426,8 +428,8 @@ void CVTypeDumperImpl::visitProcedureType(TypeLeafKind Leaf,
Name = CVTD.saveName(TypeName);
}
void CVTypeDumperImpl::visitMemberFunctionType(TypeLeafKind Leaf,
const MemberFunctionType *MemberFunc,
void CVTypeDumperImpl::visitMemberFunctionType(
TypeLeafKind Leaf, const MemberFunctionType *MemberFunc,
ArrayRef<uint8_t> LeafData) {
printTypeIndex("ReturnType", MemberFunc->ReturnType);
printTypeIndex("ClassType", MemberFunc->ClassType);
@ -486,7 +488,8 @@ void CVTypeDumperImpl::visitTypeServer2(TypeLeafKind Leaf,
W.printString("Name", Name);
}
void CVTypeDumperImpl::visitPointerType(TypeLeafKind Leaf, const PointerType *Ptr,
void CVTypeDumperImpl::visitPointerType(TypeLeafKind Leaf,
const PointerType *Ptr,
ArrayRef<uint8_t> LeafData) {
printTypeIndex("PointeeType", Ptr->PointeeType);
W.printHex("PointerAttributes", Ptr->Attrs);
@ -538,7 +541,8 @@ void CVTypeDumperImpl::visitPointerType(TypeLeafKind Leaf, const PointerType *Pt
}
}
void CVTypeDumperImpl::visitTypeModifier(TypeLeafKind Leaf, const TypeModifier *Mod,
void CVTypeDumperImpl::visitTypeModifier(TypeLeafKind Leaf,
const TypeModifier *Mod,
ArrayRef<uint8_t> LeafData) {
printTypeIndex("ModifiedType", Mod->ModifiedType);
W.printFlags("Modifiers", Mod->Modifiers, makeArrayRef(TypeModifierNames));
@ -555,7 +559,8 @@ void CVTypeDumperImpl::visitTypeModifier(TypeLeafKind Leaf, const TypeModifier *
Name = CVTD.saveName(TypeName);
}
void CVTypeDumperImpl::visitVTableShape(TypeLeafKind Leaf, const VTableShape *Shape,
void CVTypeDumperImpl::visitVTableShape(TypeLeafKind Leaf,
const VTableShape *Shape,
ArrayRef<uint8_t> LeafData) {
unsigned VFEntryCount = Shape->VFEntryCount;
W.printNumber("VFEntryCount", VFEntryCount);
@ -563,7 +568,8 @@ void CVTypeDumperImpl::visitVTableShape(TypeLeafKind Leaf, const VTableShape *Sh
// today everything is CV_VTS_near32, so it's just noise.
}
void CVTypeDumperImpl::visitUDTSrcLine(TypeLeafKind Leaf, const UDTSrcLine *Line,
void CVTypeDumperImpl::visitUDTSrcLine(TypeLeafKind Leaf,
const UDTSrcLine *Line,
ArrayRef<uint8_t> LeafData) {
printTypeIndex("UDT", Line->UDT);
printTypeIndex("SourceFile", Line->SourceFile);
@ -600,7 +606,8 @@ void CVTypeDumperImpl::visitUnknownMember(TypeLeafKind Leaf) {
W.printHex("UnknownMember", unsigned(Leaf));
}
void CVTypeDumperImpl::visitNestedType(TypeLeafKind Leaf, const NestedType *Nested,
void CVTypeDumperImpl::visitNestedType(TypeLeafKind Leaf,
const NestedType *Nested,
ArrayRef<uint8_t> &FieldData) {
DictScope S(W, "NestedType");
printTypeIndex("Type", Nested->Type);
@ -609,7 +616,8 @@ void CVTypeDumperImpl::visitNestedType(TypeLeafKind Leaf, const NestedType *Nest
W.printString("Name", Name);
}
void CVTypeDumperImpl::visitOneMethod(TypeLeafKind Leaf, const OneMethod *Method,
void CVTypeDumperImpl::visitOneMethod(TypeLeafKind Leaf,
const OneMethod *Method,
ArrayRef<uint8_t> &FieldData) {
DictScope S(W, "OneMethod");
printMemberAttributes(Method->Attrs);
@ -637,7 +645,8 @@ void CVTypeDumperImpl::visitOverloadedMethod(TypeLeafKind Leaf,
W.printString("Name", Name);
}
void CVTypeDumperImpl::visitDataMember(TypeLeafKind Leaf, const DataMember *Field,
void CVTypeDumperImpl::visitDataMember(TypeLeafKind Leaf,
const DataMember *Field,
ArrayRef<uint8_t> &FieldData) {
DictScope S(W, "DataMember");
printMemberAttributes(Field->Attrs);
@ -669,7 +678,8 @@ void CVTypeDumperImpl::visitVirtualFunctionPointer(
printTypeIndex("Type", VFTable->Type);
}
void CVTypeDumperImpl::visitEnumerator(TypeLeafKind Leaf, const Enumerator *Enum,
void CVTypeDumperImpl::visitEnumerator(TypeLeafKind Leaf,
const Enumerator *Enum,
ArrayRef<uint8_t> &FieldData) {
DictScope S(W, "Enumerator");
printMemberAttributes(Enum->Attrs);