Add a "Modules" language option, which subsumes the previous

"AutoModuleImport" preprocessor option and is tied to -fmodules.

llvm-svn: 147448
This commit is contained in:
Douglas Gregor
2012-01-03 17:07:34 +00:00
parent 2f197adeeb
commit ad01b31b94
7 changed files with 6 additions and 20 deletions

View File

@@ -627,10 +627,6 @@ void clang::InitializePreprocessor(Preprocessor &PP,
InitializeFileRemapping(PP.getDiagnostics(), PP.getSourceManager(),
PP.getFileManager(), InitOpts);
// Specify whether the preprocessor should replace #include/#import with
// module imports when plausible.
PP.setAutoModuleImport(InitOpts.AutoModuleImport);
// Emit line markers for various builtin sections of the file. We don't do
// this in asm preprocessor mode, because "# 4" is not a line marker directive
// in this mode.