[PATCH] D80369: [DebugInfo][CallSites] Remove decl subprograms from 'retainedTypes:'

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 29 09:45:59 PDT 2020


dblaikie added inline comments.


================
Comment at: clang/test/Modules/ModuleDebugInfo.m:46-47
 
-// The forward declaration should not be in the module scope.
-// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "OpaqueData", file
-
----------------
djtodoro wrote:
> dblaikie wrote:
> > Did this type go missing with this change? (ie: was this type /only/ accessible via a subprogram in the retained types list?)
> Yes, it was **only** accessible via that subprogram we removed.
@aprantl - you might want to check whether you really wanted this type & if so, how it should be handled. To the best of my knowledge/understanding, this type never would've made it through to the DWARF output even prior to this change to remove DISubprograms from retainedType - so this doesn't represent (again, to the best of my understanding) a regression, but exposes a potential problem for your use case, I guess?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80369/new/

https://reviews.llvm.org/D80369





More information about the cfe-commits mailing list