TypedDINodeRef<T> is a redundant wrapper of Metadata * that is actually a T *.
Accordingly, change DI{Node,Scope,Type}Ref uses to {const,} DI{Node,Scope,Type} *
This allows us to delete many resolve() calls that clutter the code.
Paths
| Differential D61369
[DebugInfo] Delete TypedDINodeRef ClosedPublic Authored by MaskRay on May 1 2019, 1:26 AM.
Details
Summary TypedDINodeRef<T> is a redundant wrapper of Metadata * that is actually a T *. Accordingly, change DI{Node,Scope,Type}Ref uses to {const,} DI{Node,Scope,Type} *
Diff Detail
Event TimelineComment Actions lgtm, thanks!
This revision is now accepted and ready to land.May 6 2019, 10:39 AM Closed by commit rL360108: [DebugInfo] Delete TypedDINodeRef (authored by MaskRay). · Explain WhyMay 6 2019, 7:05 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 198388 llvm/trunk/include/llvm/CodeGen/DebugHandlerBase.h
llvm/trunk/include/llvm/IR/DebugInfoMetadata.h
llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.h
llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.h
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/trunk/lib/IR/DIBuilder.cpp
llvm/trunk/lib/IR/DebugInfo.cpp
llvm/trunk/lib/IR/DebugInfoMetadata.cpp
llvm/trunk/lib/Target/BPF/BTFDebug.cpp
llvm/trunk/tools/opt/BreakpointPrinter.cpp
|