[llvm] [BOLT][DWARF] Get DWO file via a relative path if the CompilationDir does not exist (PR #154515)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 4 07:54:42 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions c,cpp -- bolt/test/dwo-name-retrieving.c bolt/lib/Core/BinaryContext.cpp bolt/lib/Rewrite/DWARFRewriter.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/test/dwo-name-retrieving.c b/bolt/test/dwo-name-retrieving.c
index a3da78fc8..4d82e7df5 100755
--- a/bolt/test/dwo-name-retrieving.c
+++ b/bolt/test/dwo-name-retrieving.c
@@ -4,13 +4,17 @@
int main() { return 0; }
// RUN: rm -rf %t && mkdir -p %t && cd %t
-// RUN: %clang %cflags -g -gsplit-dwarf -fdebug-compilation-dir=/path/does/not/exist %s -o main.exe
-// RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections 2>&1 | FileCheck %s -check-prefix=NOT-EXIST
+// RUN: %clang %cflags -g -gsplit-dwarf
+// -fdebug-compilation-dir=/path/does/not/exist %s -o main.exe RUN: llvm-bolt
+// %t/main.exe -o %t/main.exe.bolt -update-debug-sections 2>&1 | FileCheck %s
+// -check-prefix=NOT-EXIST
// NOT-EXIST: BOLT-WARNING: Debug Fission: Debug Compilation Dir wrong for
// RUN: rm -rf %t && mkdir -p %t && cd %t
-// RUN: %clang %cflags -g -gsplit-dwarf -fdebug-compilation-dir=/path/does/not/exist %s -o %t/main.exe
-// RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections 2>&1 | FileCheck %s -check-prefix=FOUND
+// RUN: %clang %cflags -g -gsplit-dwarf
+// -fdebug-compilation-dir=/path/does/not/exist %s -o %t/main.exe RUN: llvm-bolt
+// %t/main.exe -o %t/main.exe.bolt -update-debug-sections 2>&1 | FileCheck %s
+// -check-prefix=FOUND
// FOUND-NOT: Debug Fission: DWO debug information for
``````````
</details>
https://github.com/llvm/llvm-project/pull/154515
More information about the llvm-commits
mailing list