From: Manman Ren <manman.ren@gmail.com> Date: Mon, 28 Jul 2014 19:14:41 +0000 (+0000) Subject: [Debug Info] rename getTypeArray to getElements, setTypeArray to setArrays. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b5ca53f88d3e31a464b6a6b01d8e2e11ad8bcad;p=clang [Debug Info] rename getTypeArray to getElements, setTypeArray to setArrays. This is the paired commit with llvm r214112. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214113 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 048c8f8f36..e1efd9571e 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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<llvm::Value *, 16> 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<ClassTemplateSpecializationDecl>(RD)) - RealDecl.setTypeArray(llvm::DIArray(), + RealDecl.setArrays(llvm::DIArray(), CollectCXXTemplateParams(TSpecial, DefUnit)); return RealDecl; }