summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-01-23 00:01:13 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-01-23 00:01:13 +0000
commitac425e9165019ccaa0ee1be0a88c90ae84d84175 (patch)
tree1e7b00b26f6e11663a36612a10b7711acc98d20b /clang/lib/Frontend/CompilerInstance.cpp
parent5f715d36a7e04c11e1ce9b6aeb723d3b75053c40 (diff)
downloadbcm5719-llvm-ac425e9165019ccaa0ee1be0a88c90ae84d84175.tar.gz
bcm5719-llvm-ac425e9165019ccaa0ee1be0a88c90ae84d84175.zip
PR22299: Relocate code for handling -fmodule-map-file= so that we don't try to
produce diagnostics with source locations before the diagnostics system is ready for them. llvm-svn: 226882
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 93a34b72227..041a1e95225 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -371,14 +371,6 @@ void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) {
AttachHeaderIncludeGen(*PP, /*ShowAllHeaders=*/false, /*OutputPath=*/"",
/*ShowDepth=*/true, /*MSStyle=*/true);
}
-
- // Load all explictly-specified module map files.
- for (const auto &Filename : getFrontendOpts().ModuleMapFiles) {
- if (auto *File = getFileManager().getFile(Filename))
- PP->getHeaderSearchInfo().loadModuleMapFile(File, /*IsSystem*/false);
- else
- getDiagnostics().Report(diag::err_module_map_not_found) << Filename;
- }
}
// ASTContext
OpenPOWER on IntegriCloud