This was originally suggested in D58538
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Would it be possible/practical/reasonable to split getOrCreateTypeDIE at 643, before the createAndAddDIE? And at that point do the switch to the appropriate CU (basically as soon as we get the context DIE and can determine which unit is the appropriate one to build the type DIE in)
Comment Actions
Would it be possible/practical/reasonable to split getOrCreateTypeDIE
I think so, but I thought it's easier to do things this way, because AFAIK:
- DIBaseType and DISubroutineType can't introduce the problem because they're either bound to variable or typedef (DIDerivedType)
- Using type units also isn't problematic because in such case DINodes are not shareable across CUs
Ok, I'll try splitting and see how it goes