[modules] Add ability to specify module name to module file mapping (reapply)Extend the -fmodule-file option to support the [<name>=]<file> value format.If the name is omitted, then the old semant
[modules] Add ability to specify module name to module file mapping (reapply)Extend the -fmodule-file option to support the [<name>=]<file> value format.If the name is omitted, then the old semantics is preserved (the module fileis loaded whether needed or not). If the name is specified, then the mappingis treated as just another prebuilt module search mechanism, similar to-fprebuilt-module-path, and the module file is only loaded if actually used(e.g., via import). With one exception: this mapping also overrides modulefile references embedded in other modules (which can be useful if module filesare moved/renamed as often happens during remote compilation).This override semantics requires some extra work: we now store the module namein addition to the file name in the serialized AST representation.Reviewed By: rsmithDifferential Revision: https://reviews.llvm.org/D35020llvm-svn: 312220
show more ...
Revert r312105 [modules] Add ability to specify module name to module file mappingLooks like it breaks win10 builder.llvm-svn: 312112
[modules] Add ability to specify module name to module file mappingExtend the -fmodule-file option to support the [<name>=]<file> value format.If the name is omitted, then the old semantics is pre
[modules] Add ability to specify module name to module file mappingExtend the -fmodule-file option to support the [<name>=]<file> value format.If the name is omitted, then the old semantics is preserved (the module fileis loaded whether needed or not). If the name is specified, then the mappingis treated as just another prebuilt module search mechanism, similar to-fprebuilt-module-path, and the module file is only loaded if actually used(e.g., via import). With one exception: this mapping also overrides modulefile references embedded in other modules (which can be useful if module filesare moved/renamed as often happens during remote compilation).This override semantics requires some extra work: we now store the module namein addition to the file name in the serialized AST representation.Reviewed By: rsmithDifferential Revision: https://reviews.llvm.org/D35020llvm-svn: 312105