forked from OSchip/llvm-project
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
This commit is contained in:
parent
0c6e316e89
commit
793038d31b
|
@ -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);
|
||||
|
|
|
@ -153,8 +153,7 @@ std::string HeaderSearch::getModuleFileName(StringRef ModuleName,
|
|||
auto FileName = llvm::sys::path::filename(ModuleMapPath);
|
||||
|
||||
llvm::hash_code Hash =
|
||||
llvm::hash_combine(DirName.lower(), FileName.lower(),
|
||||
HSOpts->ModuleFormat, HSOpts->UseDebugInfo);
|
||||
llvm::hash_combine(DirName.lower(), FileName.lower());
|
||||
|
||||
SmallString<128> HashStr;
|
||||
llvm::APInt(64, size_t(Hash)).toStringUnsigned(HashStr, /*Radix*/36);
|
||||
|
|
Loading…
Reference in New Issue