aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/HeaderSearch.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2024-08-13 08:39:11 -0700
committerGitHub <noreply@github.com>2024-08-13 08:39:11 -0700
commit17dc43d623281cc7169c80574ac5058aa0f78b56 (patch)
tree02fbf8057cfc7e67a584cdb79ee0682ccda8e3e0 /clang/lib/Lex/HeaderSearch.cpp
parent1ae507d1091377f560c1f458487472da1730e1be (diff)
downloadllvm-17dc43d623281cc7169c80574ac5058aa0f78b56.zip
llvm-17dc43d623281cc7169c80574ac5058aa0f78b56.tar.gz
llvm-17dc43d623281cc7169c80574ac5058aa0f78b56.tar.bz2
[clang] Stop adjusting the module cache path (#102540)
This patch stops adjustments of the module cache path beyond what is done in `ParseHeaderSearchArgs` (making it absolute and removing dots). This enables more efficient implementation of the caching VFS in https://github.com/llvm/llvm-project/pull/88800.
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
-rw-r--r--clang/lib/Lex/HeaderSearch.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp
index d2210e7..4914c10 100644
--- a/clang/lib/Lex/HeaderSearch.cpp
+++ b/clang/lib/Lex/HeaderSearch.cpp
@@ -267,7 +267,6 @@ std::string HeaderSearch::getCachedModuleFileNameImpl(StringRef ModuleName,
return {};
SmallString<256> Result(CachePath);
- llvm::sys::fs::make_absolute(Result);
if (HSOpts->DisableModuleHash) {
llvm::sys::path::append(Result, ModuleName + ".pcm");