diff options
| author | Douglas Gregor <dgregor@apple.com> | 2013-06-21 16:28:10 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2013-06-21 16:28:10 +0000 |
| commit | 963c5535649dc049547853ebd3ad33ea17d2ae04 (patch) | |
| tree | 6683284f7683184e0486aff7371494fdfd73d51a /clang/lib/Frontend | |
| parent | dd08c5931715d38ca2e5233c252507bf92adee06 (diff) | |
| download | bcm5719-llvm-963c5535649dc049547853ebd3ad33ea17d2ae04.tar.gz bcm5719-llvm-963c5535649dc049547853ebd3ad33ea17d2ae04.zip | |
[Modules] If a module map resides in a system header directory, treat it as a system module.
This prevents -pedantic from causing warnings in the system headers
used to create modules. Fixes <rdar://problem/14201171>.
llvm-svn: 184560
Diffstat (limited to 'clang/lib/Frontend')
| -rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index a2872dd4f20..8011a8b6799 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -881,7 +881,7 @@ static void compileModule(CompilerInstance &ImportingInstance, // Construct a module-generating action. - GenerateModuleAction CreateModuleAction; + GenerateModuleAction CreateModuleAction(Module->IsSystem); // Execute the action to actually build the module in-place. Use a separate // thread so that we get a stack large enough. diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 91eccbb26fd..3b37e8a5c71 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -232,7 +232,7 @@ bool GenerateModuleAction::BeginSourceFileAction(CompilerInstance &CI, // Parse the module map file. HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo(); - if (HS.loadModuleMapFile(ModuleMap)) + if (HS.loadModuleMapFile(ModuleMap, IsSystem)) return false; if (CI.getLangOpts().CurrentModule.empty()) { |

