[PATCH] D61369: [DebugInfo] Delete TypedDINodeRef

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 01:26:35 PDT 2019


MaskRay created this revision.
MaskRay added reviewers: aprantl, dblaikie, dexonsmith, echristo, labath.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D61369

Files:
  include/llvm/CodeGen/DebugHandlerBase.h
  include/llvm/IR/DebugInfoMetadata.h
  lib/Bitcode/Reader/MetadataLoader.cpp
  lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  lib/CodeGen/AsmPrinter/CodeViewDebug.h
  lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.h
  lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  lib/CodeGen/AsmPrinter/DwarfUnit.h
  lib/IR/DIBuilder.cpp
  lib/IR/DebugInfo.cpp
  lib/IR/DebugInfoMetadata.cpp
  lib/Target/BPF/BTFDebug.cpp
  tools/opt/BreakpointPrinter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61369.197513.patch
Type: text/x-patch
Size: 55978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190501/71e49de8/attachment.bin>


More information about the llvm-commits mailing list