summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2015-02-12 21:51:31 +0000
committerBen Langmuir <blangmuir@apple.com>2015-02-12 21:51:31 +0000
commit18dd78a8fd7077398e6c89cc0bee6c144e936408 (patch)
tree754f7f0585fff5cdc6a3dfe50d811153c2ea4a5a /clang/lib/Frontend
parent39e988c63cf1cb8f68cb6d7e9c70e13e4b6050bc (diff)
downloadbcm5719-llvm-18dd78a8fd7077398e6c89cc0bee6c144e936408.tar.gz
bcm5719-llvm-18dd78a8fd7077398e6c89cc0bee6c144e936408.zip
Mangle the IsSystem bit into the .pcm file name
When mangling the module map path into a .pcm file name, also mangle the IsSystem bit, which can also depend on the header search paths. For example, the user may change from -I to -isystem. This can affect diagnostics in the importing TU. llvm-svn: 228966
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/FrontendActions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp
index 701ef026d49..e7ecb2952ac 100644
--- a/clang/lib/Frontend/FrontendActions.cpp
+++ b/clang/lib/Frontend/FrontendActions.cpp
@@ -366,7 +366,7 @@ bool GenerateModuleAction::ComputeASTConsumerArguments(CompilerInstance &CI,
HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo();
CI.getFrontendOpts().OutputFile =
HS.getModuleFileName(CI.getLangOpts().CurrentModule,
- ModuleMapForUniquing->getName());
+ ModuleMapForUniquing->getName(), IsSystem);
}
// We use createOutputFile here because this is exposed via libclang, and we
OpenPOWER on IntegriCloud