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 | 793038d31b25f2b9c9b41237f7ed5b3beb29be8c (patch) | |
tree | 1bc8841097e7227aafbda03337caeab56b382004 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0c6e316e890b710f0abbebb577919bcb2ae5a168 (diff) | |
download | bcm5719-llvm-793038d31b25f2b9c9b41237f7ed5b3beb29be8c.tar.gz bcm5719-llvm-793038d31b25f2b9c9b41237f7ed5b3beb29be8c.zip |
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.
llvm-svn: 257520
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 26bf013e0c2..237a4470409 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/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); |