aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2016-08-18 17:42:15 +0000
committerManman Ren <manman.ren@gmail.com>2016-08-18 17:42:15 +0000
commit11f2a477721c416abb3015b0a06d28869211bf3e (patch)
tree3cddfde033f1fa7ff40cec786759a63eb004f59c /clang/lib/Frontend/FrontendActions.cpp
parentc948d182e12c94585e8996b8d432ba6427fdd12c (diff)
downloadllvm-11f2a477721c416abb3015b0a06d28869211bf3e.zip
llvm-11f2a477721c416abb3015b0a06d28869211bf3e.tar.gz
llvm-11f2a477721c416abb3015b0a06d28869211bf3e.tar.bz2
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
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r--clang/lib/Frontend/FrontendActions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp
index d83e98f..706ccea 100644
--- a/clang/lib/Frontend/FrontendActions.cpp
+++ b/clang/lib/Frontend/FrontendActions.cpp
@@ -391,7 +391,8 @@ GenerateModuleAction::ComputeASTConsumerArguments(CompilerInstance &CI,
HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo();
CI.getFrontendOpts().OutputFile =
HS.getModuleFileName(CI.getLangOpts().CurrentModule,
- ModuleMapForUniquing->getName());
+ ModuleMapForUniquing->getName(),
+ /*UsePrebuiltPath=*/false);
}
// We use createOutputFile here because this is exposed via libclang, and we