[DebugInfo] Delete TypedDINodeRef
TypedDINodeRef<T> is a redundant wrapper of Metadata * that is actually a T *.
Accordingly, change DI{Node,Scope,Type}Ref uses to DI{Node,Scope,Type} * or their const variants.
This allows us to delete many resolve() calls that clutter the code.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D61369
llvm-svn: 360108
This commit is contained in:
@@ -337,7 +337,7 @@ Metadata *BitcodeReaderMetadataList::resolveTypeRefArray(Metadata *MaybeTuple) {
|
||||
if (!Tuple || Tuple->isDistinct())
|
||||
return MaybeTuple;
|
||||
|
||||
// Look through the DITypeRefArray, upgrading each DITypeRef.
|
||||
// Look through the DITypeRefArray, upgrading each DIType *.
|
||||
SmallVector<Metadata *, 32> Ops;
|
||||
Ops.reserve(Tuple->getNumOperands());
|
||||
for (Metadata *MD : Tuple->operands())
|
||||
|
||||
Reference in New Issue
Block a user