From: Fangrui Song Date: Sun, 10 Jan 2021 23:03:40 +0000 (-0800) Subject: CGDebugInfo: Delete unused DIFile* parameter X-Git-Tag: llvmorg-13-init~1585 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02bc320545deb0212a43acae24fcf2383755d383;p=platform%2Fupstream%2Fllvm.git CGDebugInfo: Delete unused DIFile* parameter --- diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 5bdda26..74ec683 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -2404,7 +2404,7 @@ llvm::DIType *CGDebugInfo::CreateTypeDefinition(const RecordType *Ty) { // its members. Finally, we create a descriptor for the complete type (which // may refer to the forward decl if the struct is recursive) and replace all // uses of the forward declaration with the final definition. - llvm::DICompositeType *FwdDecl = getOrCreateLimitedType(Ty, DefUnit); + llvm::DICompositeType *FwdDecl = getOrCreateLimitedType(Ty); const RecordDecl *D = RD->getDefinition(); if (!D || !D->isCompleteDefinition()) @@ -3311,8 +3311,8 @@ llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) { llvm_unreachable("type should have been unwrapped!"); } -llvm::DICompositeType *CGDebugInfo::getOrCreateLimitedType(const RecordType *Ty, - llvm::DIFile *Unit) { +llvm::DICompositeType * +CGDebugInfo::getOrCreateLimitedType(const RecordType *Ty) { QualType QTy(Ty, 0); auto *T = cast_or_null(getTypeOrNull(QTy)); diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 59fe792..31fdd6b 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -603,8 +603,7 @@ private: /// Get the type from the cache or create a new partial type if /// necessary. - llvm::DICompositeType *getOrCreateLimitedType(const RecordType *Ty, - llvm::DIFile *F); + llvm::DICompositeType *getOrCreateLimitedType(const RecordType *Ty); /// Create type metadata for a source language type. llvm::DIType *CreateTypeNode(QualType Ty, llvm::DIFile *Fg);