[clang] 02bc320 - CGDebugInfo: Delete unused DIFile* parameter
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 10 15:03:48 PST 2021
Author: Fangrui Song
Date: 2021-01-10T15:03:40-08:00
New Revision: 02bc320545deb0212a43acae24fcf2383755d383
URL: https://github.com/llvm/llvm-project/commit/02bc320545deb0212a43acae24fcf2383755d383
DIFF: https://github.com/llvm/llvm-project/commit/02bc320545deb0212a43acae24fcf2383755d383.diff
LOG: CGDebugInfo: Delete unused DIFile* parameter
Added:
Modified:
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 5bdda26a2e8e..74ec683fe6e5 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<llvm::DICompositeType>(getTypeOrNull(QTy));
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index 59fe7929ef88..31fdd6b8ed18 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -603,8 +603,7 @@ class CGDebugInfo {
/// 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);
More information about the cfe-commits
mailing list