[Modules] Honor -fmodule-name when handling private framework modulesWhen skipping building the module for a private framework module,LangOpts.CurrentModule isn't enough for implict modules builds
[Modules] Honor -fmodule-name when handling private framework modulesWhen skipping building the module for a private framework module,LangOpts.CurrentModule isn't enough for implict modules builds; forinstance, in case a private module is built while building a public one,LangOpts.CurrentModule doesn't reflect the -fmodule-name being passeddown, but instead the module name which triggered the build.Store the actual -fmodule-name in LangOpts.ModuleName and actuallycheck a name was provided during compiler invocation in order toskip building the private module.rdar://problem/38434694llvm-svn: 328053
show more ...