From fba18aa8f2cd1994dc65e8cb9f4be201c560dc0b Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 15 Sep 2011 22:00:41 +0000 Subject: Add an experimental flag -fauto-module-import that automatically turns #include or #import direcctives of framework headers into module imports of the corresponding framework module. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139860 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Driver/Tools.cpp') diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 28a14a2970..0c97cf33f4 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -390,6 +390,8 @@ void Clang::AddPreprocessingOptions(const Driver &D, CmdArgs.push_back("-fmodule-cache-path"); CmdArgs.push_back(Args.MakeArgString(DefaultModuleCache)); } + + Args.AddAllArgs(CmdArgs, options::OPT_fauto_module_import); } /// getARMTargetCPU - Get the (LLVM) name of the ARM cpu we are targeting. -- cgit v1.2.3