This is the final step in getting nested classes/structs into the type records in CodeView. Includes a simple test.
|1568 ↗||(On Diff #62544)|
This should probably be Fields.writeNestedType(getTypeIndex(Nested)). The idea is that you should always be able to call getTypeIndex, and if that happens to reference a complete record type, we defer its emission until some time later. getTypeIndex also maintains the map from DINode* to TypeIndex, and directly calling the lower* methods bypasses that.
I should write comments in CodeViewDebug.h about this!
|28 ↗||(On Diff #62544)|
We should see a NestedType record in A's FieldList. Right now both A and A::Nested are empty, so they share the same field list. :)