[PATCH] D37162: [CodeView] Don't output S_UDT records for incomplete typedefs

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 18:58:31 PDT 2017


zturner added a comment.

So maybe you're right.  I was under the impression that you could end up with IR that contained two `DICompositeType`s.  one with `DW_TAG_structure_type` and `DIFlagFwdDecl`, and a second without the forward decl flag.  Then I assumed you could have a `DW_TAG_typedef` that referred to the forward decl, even though the complete decl appeared separately later in the IR.  It seems this is not the case though and for a given linkage name, the generated IR contains either a forward decl or a complete decl, but not both.  Is that right?


https://reviews.llvm.org/D37162





More information about the llvm-commits mailing list