Revert "Reinstate r281429, reverted in r281452, with a fix for its mishandling of"This reverts commit r284176. It still marks some modules as invisiblethat should be visible. Will follow up with t
Revert "Reinstate r281429, reverted in r281452, with a fix for its mishandling of"This reverts commit r284176. It still marks some modules as invisiblethat should be visible. Will follow up with the author with a test case.llvm-svn: 284382
show more ...
Reinstate r281429, reverted in r281452, with a fix for its mishandling ofcompiles without -fmodules-local-submodule-visibility. Original commit message:[modules] When merging one definition into a
Reinstate r281429, reverted in r281452, with a fix for its mishandling ofcompiles without -fmodules-local-submodule-visibility. Original commit message:[modules] When merging one definition into another, propagate the list ofre-exporting modules from the discarded definition to the retained definition.llvm-svn: 284176
Revert "[modules] When merging one definition into another, propagate the list of re-exporting modules from the discarded definition to the retained definition."This reverts commit r281429.llvm-s
Revert "[modules] When merging one definition into another, propagate the list of re-exporting modules from the discarded definition to the retained definition."This reverts commit r281429.llvm-svn: 281452
[modules] When merging one definition into another, propagate the list ofre-exporting modules from the discarded definition to the retained definition.llvm-svn: 281429
Add a couple of test files missed in r281258.llvm-svn: 281259
[modules] When we merge two definitions of a function, mark the retaineddefinition as visible in the discarded definition's module, as we do forother kinds of definition.llvm-svn: 281258
Fix regression introduced by r279164: only pass definitions as the PatternDefto DiagnoseUninstantiableTemplate, teach hasVisibleDefinition to correctlydetermine whether a function definition is vis
Fix regression introduced by r279164: only pass definitions as the PatternDefto DiagnoseUninstantiableTemplate, teach hasVisibleDefinition to correctlydetermine whether a function definition is visible, and mark both the functionand the template as visible when merging function template definitions toprovide hasVisibleDefinition with the relevant information.The change to always pass the right declaration as the PatternDef toDiagnoseUninstantiableTemplate also caused those checks to happen before otherdiagnostics in InstantiateFunctionDefinition, giving worse diagnostics for thesame situations, so I sunk the relevant diagnostics intoDiagnoseUninstantiableTemplate. Those parts of this patch are based on changesin reviews.llvm.org/D23492 by Vassil Vassilev.This reinstates r279486, reverted in r279500, with a fix toDiagnoseUninstantiableTemplate to only mark uninstantiable explicitinstantiation declarations as invalid if we actually diagnosed them. (When wetrigger an explicit instantiation of a class member from an explicitinstantiation declaration for the class, it's OK if there is no correspondingdefinition and we certainly don't want to mark the member invalid in thatcase.) This previously caused a build failure during bootstrap.llvm-svn: 279557
Revert r279486 "Fix regression introduced by r279164"Build bots seem unhappy and as Richard was leaving he asked me to revertthis for him. Doing so.llvm-svn: 279500
Fix regression introduced by r279164: only pass definitions as the PatternDefto DiagnoseUninstantiableTemplate, teach hasVisibleDefinition to correctlydetermine whether a function definition is visible, and mark both the functionand the template as visible when merging function template definitions toprovide hasVisibleDefinition with the relevant information.The change to always pass the right declaration as the PatternDef toDiagnoseUninstantiableTemplate also caused those checks to happen before otherdiagnostics in InstantiateFunctionDefinition, giving worse diagnostics for thesame situations, so I sunk the relevant diagnostics intoDiagnoseUninstantiableTemplate. Those parts of this patch are based on changesin reviews.llvm.org/D23492 by Vassil Vassilev.llvm-svn: 279486
[modules] When determining the visible module set during templateinstantiation, use the set of modules visible from the template definition, notfrom whichever declaration the specialization was ins
[modules] When determining the visible module set during templateinstantiation, use the set of modules visible from the template definition, notfrom whichever declaration the specialization was instantiated from.llvm-svn: 241662