diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-01-12 21:01:56 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-01-12 21:01:56 +0000 |
commit | 39fe6b9f3e77fec6a167f5810af977e17f98a5cc (patch) | |
tree | 3e948964c9a9cca402530c48283f03080883df1d /lib/Frontend/CompilerInvocation.cpp | |
parent | d7aab0685a4b4241dc7618f0003a9c5430b944de (diff) | |
download | clang-39fe6b9f3e77fec6a167f5810af977e17f98a5cc.tar.gz |
Module debugging: Make the module format part of the module hash instead
of the file name. This is consistent with how other HeaderSearchOptions
are handled.
Due to the other inputs of the module hash (revision number) this is not
really testable in a meaningful way.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 26bf013e0c..237a447040 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -2202,8 +2202,11 @@ std::string CompilerInvocation::getModuleHash() const { code = hash_combine(code, I->first, I->second); } - // Extend the signature with the sysroot. - code = hash_combine(code, hsOpts.Sysroot, hsOpts.UseBuiltinIncludes, + // Extend the signature with the sysroot and other header search options. + code = hash_combine(code, hsOpts.Sysroot, + hsOpts.ModuleFormat, + hsOpts.UseDebugInfo, + hsOpts.UseBuiltinIncludes, hsOpts.UseStandardSystemIncludes, hsOpts.UseStandardCXXIncludes, hsOpts.UseLibcxx); |