summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-14 21:00:07 +0000
committerEric Christopher <echristo@gmail.com>2013-07-14 21:00:07 +0000
commit35f1f9fc285ad0980d7fa4474fd1cbbdbfd57988 (patch)
tree0fa9e7dacb167a038b42eaee1e7b93a4e35b6af2
parent5714237ca5345b3da685db2f6e33037aa3780ae5 (diff)
downloadbcm5719-llvm-35f1f9fc285ad0980d7fa4474fd1cbbdbfd57988.tar.gz
bcm5719-llvm-35f1f9fc285ad0980d7fa4474fd1cbbdbfd57988.zip
Update a few comments and reformat a decl for clarity.
llvm-svn: 186292
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 4c275462d4b..36d869232d6 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1524,8 +1524,8 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty,
// 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(const ObjCInterfaceType *Ty,
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(const ObjCInterfaceType *Ty,
// 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);
}
OpenPOWER on IntegriCloud