[llvm] [BOLT][DWARF] Get DWO file via a relative path if the CompilationDir does not exist (PR #154515)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 14:29:08 PDT 2025


================
@@ -1640,7 +1641,9 @@ void BinaryContext::preprocessDWODebugInfo() {
       if (!opts::CompDirOverride.empty()) {
         sys::path::append(AbsolutePath, opts::CompDirOverride);
         sys::path::append(AbsolutePath, DWOName);
-      }
+      } else if (!sys::fs::exists(DwarfUnit->getCompilationDir()) &&
+                 sys::fs::exists(DWOName))
+        AbsolutePath = DWOName;
----------------
ayermolo wrote:

shouldn't this be appended to "."?

https://github.com/llvm/llvm-project/pull/154515


More information about the llvm-commits mailing list