Add option to disable module loading.

This patch was created by Lawrence Crowl and reviewed in:
http://llvm-reviews.chandlerc.com/D963

llvm-svn: 187738
This commit is contained in:
Daniel Jasper
2013-08-05 20:26:17 +00:00
parent dffe59932b
commit 07e6c407bc
8 changed files with 37 additions and 12 deletions

View File

@@ -3188,7 +3188,7 @@ void Sema::CodeCompleteModuleImport(SourceLocation ImportLoc,
? CXAvailability_Available
: CXAvailability_NotAvailable));
}
} else {
} else if (getLangOpts().Modules) {
// Load the named module.
Module *Mod = PP.getModuleLoader().loadModule(ImportLoc, Path,
Module::AllVisible,