summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-10-28 17:27:32 +0000
committerDevang Patel <dpatel@apple.com>2010-10-28 17:27:32 +0000
commit8e0073008a29615b1749af4128c49c07cf77c200 (patch)
tree27eebada403915ff0f7bc955ea1b2b81a18e1d44 /clang
parentb24ba7be49365c461004f6646b3d581ff41851ad (diff)
downloadbcm5719-llvm-8e0073008a29615b1749af4128c49c07cf77c200.tar.gz
bcm5719-llvm-8e0073008a29615b1749af4128c49c07cf77c200.zip
Stay within 80 columns.
llvm-svn: 117561
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 6f905c09ba5..e4ae3bd3bc6 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -69,7 +69,7 @@ llvm::DIDescriptor CGDebugInfo::getContextDescriptor(const Decl *Context,
if (const RecordDecl *RDecl = dyn_cast<RecordDecl>(Context)) {
if (!RDecl->isDependentType()) {
- llvm::DIType Ty = getOrCreateType(CGM.getContext().getTypeDeclType(RDecl),
+ llvm::DIType Ty = getOrCreateType(CGM.getContext().getTypeDeclType(RDecl),
llvm::DIFile(CompileUnit));
return llvm::DIDescriptor(Ty);
}
@@ -100,11 +100,14 @@ llvm::StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) {
llvm::raw_svector_ostream OS(MethodName);
OS << (OMD->isInstanceMethod() ? '-' : '+') << '[';
const DeclContext *DC = OMD->getDeclContext();
- if (const ObjCImplementationDecl *OID = dyn_cast<const ObjCImplementationDecl>(DC)) {
+ if (const ObjCImplementationDecl *OID =
+ dyn_cast<const ObjCImplementationDecl>(DC)) {
OS << OID->getName();
- } else if (const ObjCInterfaceDecl *OID = dyn_cast<const ObjCInterfaceDecl>(DC)) {
+ } else if (const ObjCInterfaceDecl *OID =
+ dyn_cast<const ObjCInterfaceDecl>(DC)) {
OS << OID->getName();
- } else if (const ObjCCategoryImplDecl *OCD = dyn_cast<const ObjCCategoryImplDecl>(DC)){
+ } else if (const ObjCCategoryImplDecl *OCD =
+ dyn_cast<const ObjCCategoryImplDecl>(DC)){
OS << ((NamedDecl *)OCD)->getIdentifier()->getNameStart() << '(' <<
OCD->getIdentifier()->getNameStart() << ')';
}
@@ -270,8 +273,8 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT,
return llvm::DIType();
case BuiltinType::ObjCClass:
return DebugFactory.CreateCompositeType(llvm::dwarf::DW_TAG_structure_type,
- Unit, "objc_class", Unit, 0, 0, 0, 0,
- llvm::DIDescriptor::FlagFwdDecl,
+ Unit, "objc_class", Unit, 0, 0, 0,
+ 0, llvm::DIDescriptor::FlagFwdDecl,
llvm::DIType(), llvm::DIArray());
case BuiltinType::ObjCId: {
// typedef struct objc_class *Class;
@@ -302,8 +305,8 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT,
DebugFactory.GetOrCreateArray(EltTys.data(), EltTys.size());
return DebugFactory.CreateCompositeType(llvm::dwarf::DW_TAG_structure_type,
- Unit, "objc_object", Unit, 0, 0, 0, 0,
- 0,
+ Unit, "objc_object", Unit, 0, 0, 0,
+ 0, 0,
llvm::DIType(), Elements);
}
case BuiltinType::UChar:
@@ -1596,8 +1599,8 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType,
if (D->isImplicit())
Flags |= llvm::DIDescriptor::FlagArtificial;
llvm::DISubprogram SP =
- DebugFactory.CreateSubprogram(FDContext, Name, Name, LinkageName, Unit, LineNo,
- getOrCreateType(FnType, Unit),
+ DebugFactory.CreateSubprogram(FDContext, Name, Name, LinkageName, Unit,
+ LineNo, getOrCreateType(FnType, Unit),
Fn->hasInternalLinkage(), true/*definition*/,
0, 0, llvm::DIType(),
Flags,
OpenPOWER on IntegriCloud