Module: add -fprebuilt-module-path to support loading prebuilt modules.
authorManman Ren <manman.ren@gmail.com>
Thu, 18 Aug 2016 17:42:15 +0000 (17:42 +0000)
committerManman Ren <manman.ren@gmail.com>
Thu, 18 Aug 2016 17:42:15 +0000 (17:42 +0000)
commit11f2a477721c416abb3015b0a06d28869211bf3e
tree3cddfde033f1fa7ff40cec786759a63eb004f59c
parentc948d182e12c94585e8996b8d432ba6427fdd12c
Module: add -fprebuilt-module-path to support loading prebuilt modules.

In this mode, there is no need to load any module map and the programmer can
simply use "@import" syntax to load the module directly from a prebuilt
module path. When loading from prebuilt module path, we don't support
rebuilding of the module files and we ignore compatible configuration
mismatches.

rdar://27290316
Differential Revision: http://reviews.llvm.org/D23125

llvm-svn: 279096
19 files changed:
clang/docs/Modules.rst
clang/include/clang/Basic/DiagnosticCommonKinds.td
clang/include/clang/Driver/Options.td
clang/include/clang/Lex/HeaderSearch.h
clang/include/clang/Lex/HeaderSearchOptions.h
clang/include/clang/Serialization/Module.h
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/FrontendActions.cpp
clang/lib/Lex/HeaderSearch.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/lib/Serialization/ModuleManager.cpp
clang/test/Driver/modules.m
clang/test/Modules/Inputs/prebuilt-module/a.h [new file with mode: 0644]
clang/test/Modules/Inputs/prebuilt-module/module.modulemap [new file with mode: 0644]
clang/test/Modules/prebuilt-module.m [new file with mode: 0644]