r186292 - Update a few comments and reformat a decl for clarity.

Eric Christopher echristo at gmail.com
Sun Jul 14 14:00:07 PDT 2013


Author: echristo
Date: Sun Jul 14 16:00:07 2013
New Revision: 186292

URL: http://llvm.org/viewvc/llvm-project?rev=186292&view=rev
Log:
Update a few comments and reformat a decl for clarity.

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=186292&r1=186291&r2=186292&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Sun Jul 14 16:00:07 2013
@@ -1524,8 +1524,8 @@ llvm::DIType CGDebugInfo::CreateType(con
   // will find it and we're emitting the complete type.
   QualType QualTy = QualType(Ty, 0);
   CompletedTypeCache[QualTy.getAsOpaquePtr()] = RealDecl;
-  // Push the struct on region stack.
 
+  // Push the struct on region stack.
   LexicalBlockStack.push_back(static_cast<llvm::MDNode*>(RealDecl));
   RegionMap[Ty->getDecl()] = llvm::WeakVH(RealDecl);
 
@@ -1544,6 +1544,7 @@ llvm::DIType CGDebugInfo::CreateType(con
     EltTys.push_back(InhTag);
   }
 
+  // Create entries for all of the properties.
   for (ObjCContainerDecl::prop_iterator I = ID->prop_begin(),
          E = ID->prop_end(); I != E; ++I) {
     const ObjCPropertyDecl *PD = *I;
@@ -1589,8 +1590,8 @@ llvm::DIType CGDebugInfo::CreateType(con
 
       // Bit size, align and offset of the type.
       FieldSize = Field->isBitField()
-        ? Field->getBitWidthValue(CGM.getContext())
-        : CGM.getContext().getTypeSize(FType);
+                      ? Field->getBitWidthValue(CGM.getContext())
+                      : CGM.getContext().getTypeSize(FType);
       FieldAlign = CGM.getContext().getTypeAlign(FType);
     }
 





More information about the cfe-commits mailing list