aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorJinjie Huang <huangjinjie@bytedance.com>2025-09-15 11:30:54 +0800
committerGitHub <noreply@github.com>2025-09-15 11:30:54 +0800
commite2455bfc101bfdd59ac6426c3a804f8b78152fd7 (patch)
treef49e8afc85c18c8d8240389578da5528f656145d /llvm/unittests/ADT/StringRefTest.cpp
parentd271ace0850a8a4a24a9f62e6d1970352dd2f6e8 (diff)
downloadllvm-e2455bfc101bfdd59ac6426c3a804f8b78152fd7.zip
llvm-e2455bfc101bfdd59ac6426c3a804f8b78152fd7.tar.gz
llvm-e2455bfc101bfdd59ac6426c3a804f8b78152fd7.tar.bz2
[BOLT][DWARF] Get DWO file via relative path if the CompilationDir does not exist (#154515)
In distributed builds, the DWARF CompilationDir is often invalid, causing BOLT to fail when locating DWO files. If the default path does not exist, it seems better to consider the DWOName as a relative path in this case. The implementation of this patch will try to search for the DWO file in the following order: 1. CompDirOverride + DWOName (if CompDirOverride specified) 2. CompilationDir + DWOName (if CompilationDir exists) 3. **Current directory + DWOName (relative path as a fallback)** This patch also fixes a crash that occurs when DWOName is an absolute path and a DWP file is provided.
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
0 files changed, 0 insertions, 0 deletions