diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-31 03:54:29 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-31 03:54:29 +0000 |
commit | a290ded36a654db8421e84c16ba108d1daa313df (patch) | |
tree | f23c3cf021c7e52e50e1093f5b485a5db5e32ce4 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 121a53a176734924f936d4720b7539e91f45b3cf (diff) | |
download | bcm5719-llvm-a290ded36a654db8421e84c16ba108d1daa313df.tar.gz bcm5719-llvm-a290ded36a654db8421e84c16ba108d1daa313df.zip |
Formatting tweaks.
- No functionality change.
llvm-svn: 58488
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 4283dd4eaf3..64ce8f70e8e 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -203,7 +203,8 @@ CGDebugInfo::getOrCreateCVRType(QualType type, llvm::CompileUnitDesc *Unit) FromTy = getOrCreateType(type, Unit); } - // No need to fill in the Name, Line, Size, Alignment, Offset in case of // CVR derived types. + // No need to fill in the Name, Line, Size, Alignment, Offset in case of + // CVR derived types. DTy->setContext(Unit); DTy->setFromType(FromTy); @@ -378,9 +379,9 @@ llvm::TypeDesc * CGDebugInfo::getOrCreateRecordType(QualType type, llvm::CompileUnitDesc *Unit) { llvm::CompositeTypeDesc *RecType; - if(type->isStructureType()) + if (type->isStructureType()) RecType = new llvm::CompositeTypeDesc(llvm::dwarf::DW_TAG_structure_type); - else if(type->isUnionType()) + else if (type->isUnionType()) RecType = new llvm::CompositeTypeDesc(llvm::dwarf::DW_TAG_union_type); else return NULL; @@ -407,7 +408,7 @@ CGDebugInfo::getOrCreateRecordType(QualType type, llvm::CompileUnitDesc *Unit) } // Fill in the blanks. - if(RecType) { + if (RecType) { RecType->setContext(Unit); RecType->setName(RecDecl->getName()); RecType->setFile(getOrCreateCompileUnit(RecDecl->getLocation())); @@ -416,7 +417,7 @@ CGDebugInfo::getOrCreateRecordType(QualType type, llvm::CompileUnitDesc *Unit) RecType->setAlign(RL.getAlignment()); RecType->setOffset(0); } - return(RecType); + return RecType; } /// getOrCreateEnumType - get Enum type. @@ -427,7 +428,7 @@ CGDebugInfo::getOrCreateEnumType(QualType type, llvm::CompileUnitDesc *Unit) = new llvm::CompositeTypeDesc(llvm::dwarf::DW_TAG_enumeration_type); EnumType *EType = dyn_cast<EnumType>(type); - if (!EType) return(NULL); + if (!EType) return NULL; EnumDecl *EDecl = EType->getDecl(); SourceManager &SM = M->getContext().getSourceManager(); @@ -549,7 +550,7 @@ CGDebugInfo::getOrCreateType(QualType type, llvm::CompileUnitDesc *Unit) } // Work out details of type. - switch(type->getTypeClass()) { + switch (type->getTypeClass()) { case Type::Complex: case Type::Reference: case Type::Vector: @@ -561,9 +562,7 @@ CGDebugInfo::getOrCreateType(QualType type, llvm::CompileUnitDesc *Unit) case Type::TypeOfExp: case Type::TypeOfTyp: default: - { return NULL; - } case Type::TypeName: Slot = getOrCreateTypedefType(type, Unit); |