diff options
author | Ben Langmuir <blangmuir@apple.com> | 2015-02-19 20:23:22 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2015-02-19 20:23:22 +0000 |
commit | d89dc561c77d2585354da7f7543ff9c473f423ec (patch) | |
tree | ec7b99b5ac39903bf3f0b7b8c1cc0ef1c9914f3a /clang/lib/Lex/HeaderSearch.cpp | |
parent | bd0b651bd249ab766f9c17cf4a9f5ef268f53632 (diff) | |
download | llvm-d89dc561c77d2585354da7f7543ff9c473f423ec.zip llvm-d89dc561c77d2585354da7f7543ff9c473f423ec.tar.gz llvm-d89dc561c77d2585354da7f7543ff9c473f423ec.tar.bz2 |
Revert "Mangle the IsSystem bit into the .pcm file name"
While I investigate some possible problems with this patch.
This reverts commit r228966
llvm-svn: 229910
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
-rw-r--r-- | clang/lib/Lex/HeaderSearch.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp index f76d851..d6b255f 100644 --- a/clang/lib/Lex/HeaderSearch.cpp +++ b/clang/lib/Lex/HeaderSearch.cpp @@ -115,13 +115,11 @@ const HeaderMap *HeaderSearch::CreateHeaderMap(const FileEntry *FE) { std::string HeaderSearch::getModuleFileName(Module *Module) { const FileEntry *ModuleMap = getModuleMap().getModuleMapFileForUniquing(Module); - return getModuleFileName(Module->Name, ModuleMap->getName(), - Module->IsSystem); + return getModuleFileName(Module->Name, ModuleMap->getName()); } std::string HeaderSearch::getModuleFileName(StringRef ModuleName, - StringRef ModuleMapPath, - bool IsSystem) { + StringRef ModuleMapPath) { // If we don't have a module cache path, we can't do anything. if (ModuleCachePath.empty()) return std::string(); @@ -149,10 +147,6 @@ std::string HeaderSearch::getModuleFileName(StringRef ModuleName, llvm::hash_code Hash = llvm::hash_combine(DirName.lower(), FileName.lower()); - // Hash the IsSystem bit, since changing search paths can change whether a - // module is considered 'system' or not. - Hash = llvm::hash_combine(Hash, IsSystem); - SmallString<128> HashStr; llvm::APInt(64, size_t(Hash)).toStringUnsigned(HashStr, /*Radix*/36); llvm::sys::path::append(Result, ModuleName + "-" + HashStr.str() + ".pcm"); |