[llvm] r268678 - Fix CVTypeDumperImpl formatting after class rename

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu May 5 13:31:16 PDT 2016


Author: rnk
Date: Thu May  5 15:31:16 2016
New Revision: 268678

URL: http://llvm.org/viewvc/llvm-project?rev=268678&view=rev
Log:
Fix CVTypeDumperImpl formatting after class rename

Modified:
    llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp

Modified: llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp?rev=268678&r1=268677&r2=268678&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp (original)
+++ llvm/trunk/lib/DebugInfo/CodeView/TypeDumper.cpp Thu May  5 15:31:16 2016
@@ -362,7 +362,7 @@ void CVTypeDumperImpl::visitUnionType(Ty
 }
 
 void CVTypeDumperImpl::visitEnumType(TypeLeafKind Leaf, const EnumType *Enum,
-                                 ArrayRef<uint8_t> LeafData) {
+                                     ArrayRef<uint8_t> LeafData) {
   W.printNumber("NumEnumerators", Enum->NumEnumerators);
   W.printFlags("Properties", uint16_t(Enum->Properties),
                makeArrayRef(ClassOptionNames));
@@ -373,7 +373,7 @@ void CVTypeDumperImpl::visitEnumType(Typ
 }
 
 void CVTypeDumperImpl::visitArrayType(TypeLeafKind Leaf, const ArrayType *AT,
-                                  ArrayRef<uint8_t> LeafData) {
+                                      ArrayRef<uint8_t> LeafData) {
   printTypeIndex("ElementType", AT->ElementType);
   printTypeIndex("IndexType", AT->IndexType);
   uint64_t SizeOf;
@@ -384,8 +384,9 @@ void CVTypeDumperImpl::visitArrayType(Ty
   W.printString("Name", Name);
 }
 
-void CVTypeDumperImpl::visitVFTableType(TypeLeafKind Leaf, const VFTableType *VFT,
-                                    ArrayRef<uint8_t> LeafData) {
+void CVTypeDumperImpl::visitVFTableType(TypeLeafKind Leaf,
+                                        const VFTableType *VFT,
+                                        ArrayRef<uint8_t> LeafData) {
   printTypeIndex("CompleteClass", VFT->CompleteClass);
   printTypeIndex("OverriddenVFTable", VFT->OverriddenVFTable);
   W.printHex("VFPtrOffset", VFT->VFPtrOffset);
@@ -399,8 +400,9 @@ void CVTypeDumperImpl::visitVFTableType(
   }
 }
 
-void CVTypeDumperImpl::visitMemberFuncId(TypeLeafKind Leaf, const MemberFuncId *Id,
-                                     ArrayRef<uint8_t> LeafData) {
+void CVTypeDumperImpl::visitMemberFuncId(TypeLeafKind Leaf,
+                                         const MemberFuncId *Id,
+                                         ArrayRef<uint8_t> LeafData) {
   printTypeIndex("ClassType", Id->ClassType);
   printTypeIndex("FunctionType", Id->FunctionType);
   Name = getBytesAsCString(LeafData);
@@ -408,8 +410,8 @@ void CVTypeDumperImpl::visitMemberFuncId
 }
 
 void CVTypeDumperImpl::visitProcedureType(TypeLeafKind Leaf,
-                                      const ProcedureType *Proc,
-                                      ArrayRef<uint8_t> LeafData) {
+                                          const ProcedureType *Proc,
+                                          ArrayRef<uint8_t> LeafData) {
   printTypeIndex("ReturnType", Proc->ReturnType);
   W.printEnum("CallingConvention", uint8_t(Proc->CallConv),
               makeArrayRef(CallingConventions));
@@ -426,9 +428,9 @@ void CVTypeDumperImpl::visitProcedureTyp
   Name = CVTD.saveName(TypeName);
 }
 
-void CVTypeDumperImpl::visitMemberFunctionType(TypeLeafKind Leaf,
-                                           const MemberFunctionType *MemberFunc,
-                                           ArrayRef<uint8_t> LeafData) {
+void CVTypeDumperImpl::visitMemberFunctionType(
+    TypeLeafKind Leaf, const MemberFunctionType *MemberFunc,
+    ArrayRef<uint8_t> LeafData) {
   printTypeIndex("ReturnType", MemberFunc->ReturnType);
   printTypeIndex("ClassType", MemberFunc->ClassType);
   printTypeIndex("ThisType", MemberFunc->ThisType);
@@ -452,7 +454,7 @@ void CVTypeDumperImpl::visitMemberFuncti
 }
 
 void CVTypeDumperImpl::visitMethodList(TypeLeafKind Leaf,
-                                   ArrayRef<uint8_t> LeafData) {
+                                       ArrayRef<uint8_t> LeafData) {
   while (!LeafData.empty()) {
     const MethodListEntry *Method;
     if (!consumeObject(LeafData, Method))
@@ -470,7 +472,7 @@ void CVTypeDumperImpl::visitMethodList(T
 }
 
 void CVTypeDumperImpl::visitFuncId(TypeLeafKind Leaf, const FuncId *Func,
-                               ArrayRef<uint8_t> LeafData) {
+                                   ArrayRef<uint8_t> LeafData) {
   printTypeIndex("ParentScope", Func->ParentScope);
   printTypeIndex("FunctionType", Func->FunctionType);
   Name = getBytesAsCString(LeafData);
@@ -478,16 +480,17 @@ void CVTypeDumperImpl::visitFuncId(TypeL
 }
 
 void CVTypeDumperImpl::visitTypeServer2(TypeLeafKind Leaf,
-                                    const TypeServer2 *TypeServer,
-                                    ArrayRef<uint8_t> LeafData) {
+                                        const TypeServer2 *TypeServer,
+                                        ArrayRef<uint8_t> LeafData) {
   W.printBinary("Signature", StringRef(TypeServer->Signature, 16));
   W.printNumber("Age", TypeServer->Age);
   Name = getBytesAsCString(LeafData);
   W.printString("Name", Name);
 }
 
-void CVTypeDumperImpl::visitPointerType(TypeLeafKind Leaf, const PointerType *Ptr,
-                                    ArrayRef<uint8_t> LeafData) {
+void CVTypeDumperImpl::visitPointerType(TypeLeafKind Leaf,
+                                        const PointerType *Ptr,
+                                        ArrayRef<uint8_t> LeafData) {
   printTypeIndex("PointeeType", Ptr->PointeeType);
   W.printHex("PointerAttributes", Ptr->Attrs);
   W.printEnum("PtrType", unsigned(Ptr->getPtrKind()),
@@ -538,8 +541,9 @@ void CVTypeDumperImpl::visitPointerType(
   }
 }
 
-void CVTypeDumperImpl::visitTypeModifier(TypeLeafKind Leaf, const TypeModifier *Mod,
-                                     ArrayRef<uint8_t> LeafData) {
+void CVTypeDumperImpl::visitTypeModifier(TypeLeafKind Leaf,
+                                         const TypeModifier *Mod,
+                                         ArrayRef<uint8_t> LeafData) {
   printTypeIndex("ModifiedType", Mod->ModifiedType);
   W.printFlags("Modifiers", Mod->Modifiers, makeArrayRef(TypeModifierNames));
 
@@ -555,23 +559,25 @@ void CVTypeDumperImpl::visitTypeModifier
   Name = CVTD.saveName(TypeName);
 }
 
-void CVTypeDumperImpl::visitVTableShape(TypeLeafKind Leaf, const VTableShape *Shape,
-                                    ArrayRef<uint8_t> LeafData) {
+void CVTypeDumperImpl::visitVTableShape(TypeLeafKind Leaf,
+                                        const VTableShape *Shape,
+                                        ArrayRef<uint8_t> LeafData) {
   unsigned VFEntryCount = Shape->VFEntryCount;
   W.printNumber("VFEntryCount", VFEntryCount);
   // We could print out whether the methods are near or far, but in practice
   // today everything is CV_VTS_near32, so it's just noise.
 }
 
-void CVTypeDumperImpl::visitUDTSrcLine(TypeLeafKind Leaf, const UDTSrcLine *Line,
-                                   ArrayRef<uint8_t> LeafData) {
+void CVTypeDumperImpl::visitUDTSrcLine(TypeLeafKind Leaf,
+                                       const UDTSrcLine *Line,
+                                       ArrayRef<uint8_t> LeafData) {
   printTypeIndex("UDT", Line->UDT);
   printTypeIndex("SourceFile", Line->SourceFile);
   W.printNumber("LineNumber", Line->LineNumber);
 }
 
 void CVTypeDumperImpl::visitBuildInfo(TypeLeafKind Leaf, const BuildInfo *Args,
-                                  ArrayRef<uint8_t> LeafData) {
+                                      ArrayRef<uint8_t> LeafData) {
   W.printNumber("NumArgs", Args->NumArgs);
 
   ListScope Arguments(W, "Arguments");
@@ -600,8 +606,9 @@ void CVTypeDumperImpl::visitUnknownMembe
   W.printHex("UnknownMember", unsigned(Leaf));
 }
 
-void CVTypeDumperImpl::visitNestedType(TypeLeafKind Leaf, const NestedType *Nested,
-                                   ArrayRef<uint8_t> &FieldData) {
+void CVTypeDumperImpl::visitNestedType(TypeLeafKind Leaf,
+                                       const NestedType *Nested,
+                                       ArrayRef<uint8_t> &FieldData) {
   DictScope S(W, "NestedType");
   printTypeIndex("Type", Nested->Type);
   StringRef Name = getBytesAsCString(FieldData);
@@ -609,8 +616,9 @@ void CVTypeDumperImpl::visitNestedType(T
   W.printString("Name", Name);
 }
 
-void CVTypeDumperImpl::visitOneMethod(TypeLeafKind Leaf, const OneMethod *Method,
-                                  ArrayRef<uint8_t> &FieldData) {
+void CVTypeDumperImpl::visitOneMethod(TypeLeafKind Leaf,
+                                      const OneMethod *Method,
+                                      ArrayRef<uint8_t> &FieldData) {
   DictScope S(W, "OneMethod");
   printMemberAttributes(Method->Attrs);
   printTypeIndex("Type", Method->Type);
@@ -627,8 +635,8 @@ void CVTypeDumperImpl::visitOneMethod(Ty
 }
 
 void CVTypeDumperImpl::visitOverloadedMethod(TypeLeafKind Leaf,
-                                         const OverloadedMethod *Method,
-                                         ArrayRef<uint8_t> &FieldData) {
+                                             const OverloadedMethod *Method,
+                                             ArrayRef<uint8_t> &FieldData) {
   DictScope S(W, "OverloadedMethod");
   W.printHex("MethodCount", Method->MethodCount);
   W.printHex("MethodListIndex", Method->MethList.getIndex());
@@ -637,8 +645,9 @@ void CVTypeDumperImpl::visitOverloadedMe
   W.printString("Name", Name);
 }
 
-void CVTypeDumperImpl::visitDataMember(TypeLeafKind Leaf, const DataMember *Field,
-                                   ArrayRef<uint8_t> &FieldData) {
+void CVTypeDumperImpl::visitDataMember(TypeLeafKind Leaf,
+                                       const DataMember *Field,
+                                       ArrayRef<uint8_t> &FieldData) {
   DictScope S(W, "DataMember");
   printMemberAttributes(Field->Attrs);
   printTypeIndex("Type", Field->Type);
@@ -652,8 +661,8 @@ void CVTypeDumperImpl::visitDataMember(T
 }
 
 void CVTypeDumperImpl::visitStaticDataMember(TypeLeafKind Leaf,
-                                         const StaticDataMember *Field,
-                                         ArrayRef<uint8_t> &FieldData) {
+                                             const StaticDataMember *Field,
+                                             ArrayRef<uint8_t> &FieldData) {
   DictScope S(W, "StaticDataMember");
   printMemberAttributes(Field->Attrs);
   printTypeIndex("Type", Field->Type);
@@ -669,8 +678,9 @@ void CVTypeDumperImpl::visitVirtualFunct
   printTypeIndex("Type", VFTable->Type);
 }
 
-void CVTypeDumperImpl::visitEnumerator(TypeLeafKind Leaf, const Enumerator *Enum,
-                                   ArrayRef<uint8_t> &FieldData) {
+void CVTypeDumperImpl::visitEnumerator(TypeLeafKind Leaf,
+                                       const Enumerator *Enum,
+                                       ArrayRef<uint8_t> &FieldData) {
   DictScope S(W, "Enumerator");
   printMemberAttributes(Enum->Attrs);
   APSInt EnumValue;
@@ -683,7 +693,7 @@ void CVTypeDumperImpl::visitEnumerator(T
 }
 
 void CVTypeDumperImpl::visitBaseClass(TypeLeafKind Leaf, const BaseClass *Base,
-                                  ArrayRef<uint8_t> &FieldData) {
+                                      ArrayRef<uint8_t> &FieldData) {
   DictScope S(W, "BaseClass");
   printMemberAttributes(Base->Attrs);
   printTypeIndex("BaseType", Base->BaseType);
@@ -694,8 +704,8 @@ void CVTypeDumperImpl::visitBaseClass(Ty
 }
 
 void CVTypeDumperImpl::visitVirtualBaseClass(TypeLeafKind Leaf,
-                                         const VirtualBaseClass *Base,
-                                         ArrayRef<uint8_t> &FieldData) {
+                                             const VirtualBaseClass *Base,
+                                             ArrayRef<uint8_t> &FieldData) {
   DictScope S(W, "VirtualBaseClass");
   printMemberAttributes(Base->Attrs);
   printTypeIndex("BaseType", Base->BaseType);




More information about the llvm-commits mailing list