[Modules] Be consistent about finding a module for framework headersWe use findModuleForHeader() in several places, but in header search wewere not calling it when a framework module didn't show u
[Modules] Be consistent about finding a module for framework headersWe use findModuleForHeader() in several places, but in header search wewere not calling it when a framework module didn't show up with theexpected name, which would then lead to unexpected non-modular includes.Now we will find the module unconditionally for frameworks. For regularframeworks, we use the spelling of the module name from the module mapfile, and for inferred ones we use the canonical directory name.In the future we might want to lock down framework modules sufficientlythat these name mismatches cannot happen.rdar://problem/20465870llvm-svn: 241258
show more ...