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/Lex/HeaderSearch.cpp | |
parent | 0c6e316e890b710f0abbebb577919bcb2ae5a168 (diff) | |
download | llvm-793038d31b25f2b9c9b41237f7ed5b3beb29be8c.zip llvm-793038d31b25f2b9c9b41237f7ed5b3beb29be8c.tar.gz llvm-793038d31b25f2b9c9b41237f7ed5b3beb29be8c.tar.bz2 |
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/Lex/HeaderSearch.cpp')
-rw-r--r-- | clang/lib/Lex/HeaderSearch.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp index 8a686a7..2d005dd 100644 --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -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); |