From 51289892d27bf8921434c4376df5014aa436f002 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Mon, 28 Jul 2014 19:14:41 +0000 Subject: [PATCH] [Debug Info] rename getTypeArray to getElements, setTypeArray to setArrays. This is the paired commit with llvm r214112. llvm-svn: 214113 --- clang/lib/CodeGen/CGDebugInfo.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 048c8f8f3674..e1efd9571e70 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -425,7 +425,7 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { DBuilder.createStructType(TheCU, "objc_object", getOrCreateMainFile(), 0, 0, 0, 0, llvm::DIType(), llvm::DIArray()); - ObjTy.setTypeArray(DBuilder.getOrCreateArray(&*DBuilder.createMemberType( + ObjTy.setArrays(DBuilder.getOrCreateArray(&*DBuilder.createMemberType( ObjTy, "isa", getOrCreateMainFile(), 0, Size, 0, 0, 0, ISATy))); return ObjTy; } @@ -987,7 +987,7 @@ llvm::DICompositeType CGDebugInfo::getOrCreateInstanceMethodType( QualType ThisPtr, const FunctionProtoType *Func, llvm::DIFile Unit) { // Add "this" pointer. llvm::DIArray Args = llvm::DICompositeType( - getOrCreateType(QualType(Func, 0), Unit)).getTypeArray(); + getOrCreateType(QualType(Func, 0), Unit)).getElements(); assert (Args.getNumElements() && "Invalid number of arguments!"); SmallVector Elts; @@ -1589,7 +1589,7 @@ llvm::DIType CGDebugInfo::CreateTypeDefinition(const RecordType *Ty) { RegionMap.erase(Ty->getDecl()); llvm::DIArray Elements = DBuilder.getOrCreateArray(EltTys); - FwdDecl.setTypeArray(Elements); + FwdDecl.setArrays(Elements); RegionMap[Ty->getDecl()] = llvm::WeakVH(FwdDecl); return FwdDecl; @@ -1796,7 +1796,7 @@ llvm::DIType CGDebugInfo::CreateTypeDefinition(const ObjCInterfaceType *Ty, llvm } llvm::DIArray Elements = DBuilder.getOrCreateArray(EltTys); - RealDecl.setTypeArray(Elements); + RealDecl.setArrays(Elements); LexicalBlockStack.pop_back(); return RealDecl; @@ -2214,7 +2214,7 @@ llvm::DIType CGDebugInfo::getOrCreateLimitedType(const RecordType *Ty, // Propagate members from the declaration to the definition // CreateType(const RecordType*) will overwrite this with the members in the // correct order if the full type is needed. - Res.setTypeArray(T.getTypeArray()); + Res.setArrays(T.getElements()); // And update the type cache. TypeCache[QTy.getAsOpaquePtr()] = Res; @@ -2273,7 +2273,7 @@ llvm::DICompositeType CGDebugInfo::CreateLimitedType(const RecordType *Ty) { if (const ClassTemplateSpecializationDecl *TSpecial = dyn_cast(RD)) - RealDecl.setTypeArray(llvm::DIArray(), + RealDecl.setArrays(llvm::DIArray(), CollectCXXTemplateParams(TSpecial, DefUnit)); return RealDecl; }